LoginSignup
3
1

More than 5 years have passed since last update.

メモ HerokuのPostgresにPlay Frameworkで接続する方法

Last updated at Posted at 2017-11-07

DB作製

herokuコマンドでポストグレスDBを作製します。

heroku addons:add heroku-postgresql

 確認

その後Herokuにログインしてhttps://data.heroku.com/にアクセスすると先程作製したDBがあるはずなのでクリックします。
遷移先にあるURIの項目をコピーします。

conf/application.confdb.default.urlにコピーしたURI設定します

設定

db.default.driver=org.postgresql.Driver
db.default.url="<URI>"

という感じになると思います。

3
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
1