Answer the question
In order to leave comments, you need to log in
How to fix the error PG::ConnectionBad could not connect to server?
In order to deploy to Hiroku, I transferred my rails project to PG. Now, on the local machine, the browser gives the error
PG::ConnectionBad
could not connect to server
, although everything works fine on Hiroku. I googled a lot about this error ... but understood little. Has anyone come across...
Answer the question
In order to leave comments, you need to log in
It is possible to hardcode the hasp key server address. For example, at localhost:1947, or in a configuration file.
On Heroku Postgres, that is. Do you have it on your local machine?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question