Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

example-java-jdbc-postgres

Sample java app that connects to Postgres via a JDBC adapter. It reads the connection settings from the JDBC_POSTGRES_URI env variable.

Deploying

$ apc app create jdbc-postgres -dr --restart no

Binding To Postgres

Create a postgres service using one of your postgres providers

$ apc service create postgres-service -t postgres --provider /apcera/bootstrap::postgres --batch

Bind the app to this new service

$ apc service bind postgres-service -j jdbc-postgres

Start the app

$ apc app start jdbc-postgres