当我尝试:
rake db:migrate
我得到:
rake aborted!
FATAL: Ident authentication failed for user "postgres"
当我没有问题时
vagrant@lucid32:/sudo su - postgres
postgres@lucid32:/ psql
postgres# (can list databases)
这是我的 pg_hba.conf 文件:
# TYPE DATABASE USER CIDR-ADDRESS METHOD
# "local" is for Unix domain socket connections only
local all all trust
# IPv4 local connections:
host all all 127.0.0.1/32 trust
# IPv6 local connections:
host all all ::1/128 trust
# Vagrant uses 33.33.33.10 like addresses
host all all 33.33.33.0/24 trust