I am trying to pull the heroku database to my local machine using
heroku pg:pull HEROKU_POSTGRESQL_DATABASE mydatabase --app myapp
However, when I run this command, I get the following error:
'env' is not recognized as an internal or external command, a valid program or batch file.! Could not find local psql command! For help installing psql see PostgreSQL-local-setup
I have psql in my path and I can successfully call psql from my command line. I can even call it heroku pg:info --app myappsuccessfully, and it shows the presence of my database.
Any suggestions?
source
share