D
D
Dmitry2017-08-21 18:43:01
System administration
Dmitry, 2017-08-21 18:43:01

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

3 answer(s)
G
Glinko, 2019-04-25
@Glinko

It is possible to hardcode the hasp key server address. For example, at localhost:1947, or in a configuration file.

V
vadimstroganov, 2017-08-21
@vadimstroganov

On Heroku Postgres, that is. Do you have it on your local machine?

D
Dmitry, 2017-08-22
@r_o_r

I read that I need to edit the pg_hba.conf file but I can’t do it ... it says that access is denied .... damn it, how to get around this?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question