お世話になります。EC2で本番環境構築しています。
ローカルでdb作成でえらーになります。
rails
1vagrant@vagrant-ubuntu-trusty:~/workspace/face_sns$ rake db:create RAILS_ENV=production 2FATAL: Peer authentication failed for user "face_sns" 3
ぐぐったところEC2で
local all all trust
host all all 0.0.0.0/0 md5
を追加しましたがエラー変わらずです。
# If you want to allow non-local connections, you need to add more # "host" records. In that case you will also need to make PostgreSQL # listen on a non-local interface via the listen_addresses # configuration parameter, or via the -i or -h command line switches. # TYPE DATABASE USER ADDRESS METHOD # "local" is for Unix domain socket connections only # local all all md5 # IPv4 local connections: # host all all 127.0.0.1/32 ident # IPv6 local connections: # host all all ::1/128 ident # Allow replication connections from localhost, by a user with the # replication privilege. # local replication postgres md5 # host replication postgres 127.0.0.1/32 ident # host replication postgres ::1/128 ident local all all trust host all all 0.0.0.0/0 md5
エラーの原因はなんでしょうか?
まだまだ勉強中で必要ファイル全て提示していないかもしれませんが、考えられる原因教えてください。
あなたの回答
tips
プレビュー