Answer the question
In order to leave comments, you need to log in
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"
Answer the question
In order to leave comments, you need to log in
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 questionAsk a Question
731 491 924 answers to any question