こんなエラーに出くわした
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
をしたらなおった。