Skip to content

Latest commit

 

History

History
43 lines (34 loc) · 1.1 KB

README.md

File metadata and controls

43 lines (34 loc) · 1.1 KB

Material Database

The application can be started locally using the following command:

$ ./gradlew bootRun

The application can be pushed to cloud foundry using the following command:

$ ./gradlew assemble

Since we are using spring boot 1.5. While pushing, using the following command which is pointing to java_buildpack 3.14 instead of the default version.

$ cf push -b https://github.com/cloudfoundry/java-buildpack.git#26cf03b

The application will use the settings in the 'manifest.yml' file.

Cloud Foundry Usage

In this example, the application uses a postgres service named 'postgresTest' which could be changed in 'manifest.yml'.

# view the services available
$ cf marketplace
# create a <service instance>
$ cf create-service <service> <service plan> <service name>
# bind the service instance to the application
$ cf bind-service <app name> <service name>
# restart the application so the new service is detected
$ cf restart

Changing bound services

$ cf unbind-service <app name> <service name>
$ cf bind-service <app name> <service name>
$ cf restart