I'm trying to migrate from SQLite to Postgres so the app deploys correctly on Heroku. But I'm not having any luck.
rake aborted!
PG::ConnectionBad: could not connect to server: Connection refused
Is the server running on host "localhost" (127.0.0.1) and accepting
TCP/IP connections on port 5432?
I'm new to Postgres but I've tried every suggestion I've come across with no luck. Here's my database.yaml file:
default: &default
adapter: postgresql
encoding: unicode
pool: 5
timeout: 5000
host: localhost
username: postgres
password: postgres
development:
<<: *default
database: app_development
test:
<<: *default
database: app_test
production:
<<: *default
database: app_production
I believe I have the empty database setup correctly as it is in the Postgres list, but running rake db:migrate fails.
Any help is greatly appreciated.