Cloud Foundry - Deploy Spring Boot Hello World Example in PCF
Deploy/Push Spring Boot in PCF
Today will see how to deploy simple spring boot application to Pivotal Cloud Foundry(PCF).After adding above manifest file, Project will look like as given below
Create Account in PCF, login to PCF from cmd by using cf login -a api.run.pivotal.io command
Deploy your application by using cf push from path where manifest.yml resides
Loging to PCF https://login.run.pivotal.io/login
Click on Organization-> Development, you can see your Spring Boot App deployed to PCF.
Now click on route and you can see the output
Today will see how to deploy simple spring boot application to Pivotal Cloud Foundry(PCF).
- Click here to create Spring Boot Rest Application and follow below steps to deploy on Pivotal Clod Foundry.
- Create manifest.yml file as given below at root project
applications:
- name: Emp-Task
memory: 768M
instances: 1
path: target\Emp-Task-0.0.1-SNAPSHOT.jar
random-route: true
services:
- mysqldb
buildpacks:
- https://github.com/cloudfoundry/java-buildpack.git