LoginSignup
0
0

More than 5 years have passed since last update.

herokuでdatabaseをupgradeしたあとのエラー

Posted at

こんなエラーに出くわした

Running rails db:migrate on ⬢ myapp... up, run.4685 (Free)
/app/config/environments/production.rb:71: warning: key :domain is duplicated and overwritten on line 74
rails aborted!
PG::ConnectionBad: could not connect to server: No such file or directory
    Is the server running locally and accepting
    connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?

状況

herokuのpostgresqlをfreeからbasicにアップグレードしようと思い、こちらのサイトを参考にやったところ、heroku run rails cで上記のようなエラーがでて、そこから先に進めなくなった。

解決方法

公式サイトをもとに

heroku pg:promote HEROKU_POSTGRESQL_VIOLET --app your-app

をしたらなおった。

0
0
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
0
0