I have looked through many answers on this but I can seem to understand why it's not working for me. I want to upload my local PostgreSQL DB to my rails app on Heroku.
I tried doing these commands (values replaced for obvious reasons):
PGPASSWORD=[my db password] pg_dump -Fc --no-acl --no-owner -h localhost -U postgres [db name] > [db name].dump
Resulting in this error: 'PGPASSWORD' is not recognized as an internal or external command, operable program or batch file.
heroku pg:push db_name [entire db url] --app app-name
I pulled the DB URL from the command heroku config --app app-name
but said it was an unknown database and said a valid option was DATABASE_URL
.
- I tried replacing
[entire db url]
withDATABASE_URL
and it just gave me:The local psql command could not be located.
I have installed (and am currently running) PostgreSQL. My app launches and everything is good, for some reason my local DB values didn't transfer over to the app.
Any help is so greatly appreciated, thank you.