Skip to content

shijianjian/spring-jdbc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages