Guest User

Untitled

a guest
Feb 26th, 2018
278
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. -- Provider
  2. lazy val db = Database.forDataSource(dbApi.database("default").dataSource, None)
  3.  
  4.  
  5. -- Conf
  6. db {
  7. default {
  8. dataSourceClass = org.postgresql.ds.PGSimpleDataSource
  9. driver = org.postgresql.Driver
  10. url = "jdbc:postgresql://"${?DATABASE_HOST}":"${?DATABASE_PORT}"/databasename"
  11. username = ${?DATABASE_USER}
  12. password = ${?DATABASE_PASS}
  13. migration {
  14. initOnMigrate = ${?INIT_ON_MIGRATE}
  15. }
  16. connectionTestQuery="/*ping*/ select 1"
  17. }
  18. }
Add Comment
Please, Sign In to add comment