Trying to run my Rails 4.0.4 (Ruby 2.1.1) application on CentOS 6.5
Failing when I attempt to migrate:
$ rake db:migrate
rake aborted!
PG::ConnectionBad: FATAL: no pg_hba.conf entry for host "::1", user "my_user", database "my_database_dev", SSL off
I am not sure how to tackle this one. On my mac setup all worked fine without having to touch the pg_hba.conf.
Any lead is welcome.
I have created my_user
as follow:
CREATE ROLE my_user WITH CREATEDB SUPERUSER LOGIN;
And allowed my_user to access all database with 'trust' in the pg_hba.conf
my config/database.yml
contains
development:
adapter: postgresql
host: localhost
encoding: unicode
database: my_database_dev
pool: 5
username: my_user
password:
template: template0