Heroku pg: push remote database is not empty?

I'm trying pg: pushing my database to heroku server, but still getting the remote database is not an empty error, although I am reloading / db with pg: reset

heroku pg:reset remote_database_name
heroku pg:push dev_database remote_database

An error still occurs. For the name of the remote database, I use the name my-database-7121 :: pink

+4
source share
1 answer

I had this problem and it took me a while to resolve.

The trick is that Postgres is configured correctly. To verify that this is the case, enter the following into your terminal:

$ which psql

If you are working on a Mac and using Postgres.app, this should return something where Postgres.app can be found, for example:

$ /Applications/Postgres.app/Contents/Versions/9.3/bin/psql

" psql" , :

$ export PATH=$PATH:/Applications/Postgres.app/Contents/Versions/9.3/bin

, (.. ):

$ which psql

, "heroku pg: reset" "heroku pg: push" - ()

+1

All Articles