Can't connect to Postgres
secondbreakfast
PROOP
a year ago
My app isn't connecting to my Postgres instance, even though I've set things up exactly as I have them set up in my other apps. I'm getting this error. Help!
Tasks: TOP => db:prepare
(See full trace by running task with --trace)
bin/rails aborted!
ActiveRecord::ConnectionNotEstablished: could not connect to server: No such file or directory (ActiveRecord::ConnectionNotEstablished)
Is the server running locally and accepting
connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?Caused by:
PG::ConnectionBad: could not connect to server: No such file or directory (PG::ConnectionBad)
Is the server running locally and accepting
connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?ⓘ Deployment information is only viewable by project members and Railway employees.
1 Replies
secondbreakfast
PROOP
a year ago
What's weird is the Postgres database got built and migrated based on the Rails migrations, but now the Rails app is refusing to connect.