I have developed a Rails 3.2.13
app with PostgreSQL
development database on my Windows7 machine. I was able to push my app to heroku with success. However, now I'm stuck at the process of migrating the existing data to Heroku.
I have tried following along the documentation by Heroku, but I can't seem to get it to work.
Here's what I have done so far:
- Installed the PG Backups heroku addon
- Created a dump file for my development database with the command
pg_dump -Fc --no-acl --no-owner -h localhost -U user myapp_development > myapp_development.dump
- Uploaded the dump file to AWS S3
At this point, I am not sure how to proceed, to restore the dump file and turn it to a production database in Heroku. Can anyone please help?
P.S.
I also have tried the heroku db:push
command, but it gave the following error:
Failed to connect to database: Sequel::AdapterNotFound -> LoadError: cannot load such file -- pg