Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Provider
- lazy val db = Database.forDataSource(dbApi.database("default").dataSource, None)
- -- Conf
- db {
- default {
- dataSourceClass = org.postgresql.ds.PGSimpleDataSource
- driver = org.postgresql.Driver
- url = "jdbc:postgresql://"${?DATABASE_HOST}":"${?DATABASE_PORT}"/databasename"
- username = ${?DATABASE_USER}
- password = ${?DATABASE_PASS}
- migration {
- initOnMigrate = ${?INIT_ON_MIGRATE}
- }
- connectionTestQuery="/*ping*/ select 1"
- }
- }
Add Comment
Please, Sign In to add comment