D
D
Dmitry2017-08-25 06:57:47
PostgreSQL
Dmitry, 2017-08-25 06:57:47

Where can I find good documentation on configuring postgres for Ruby on Rails?

I transferred the project from sqlite to pg in order to upload it to hiroku ... So everything works fine on hiroku, but locally I can’t launch the project anyway. PG installed. But it throws an error

PG::ConnectionBad
FATAL: Peer authentication failed for user "alex"

And he did everything according to the manuals found in Google. I've been worrying about this for a week now and nothing... Advise a link where all these nuances would be well chewed or help me figure out what I'm doing wrong...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Karim Kyatlottyavi, 2017-08-25
@constXife

This article may solve your problem with Peer authentication. But you still need to be able to impose it on your situation, on your operating system.
https://www.digitalocean.com/community/tutorials/h...
In short, by your mistake, you need to configure the correct authorization in pg_hba.conf. Usually this is md5, but I use trust on the local system. But you will still need to find this file on your computer.
https://postgrespro.ru/docs/postgrespro/9.6/auth-p...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question