Heroku pull postgresql on windows

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?

+4
source share
2 answers

, , :

., , "env" , ", , env. .

Env , unix. , Windows. "git bash". ( , CLI Heroku).

unix- , env, heroku pg: pull:)

, !

+4

, , - . . p > ; " ", " ". "" "", . : C:\Program Files (x86)\PostgreSQL\9.3\bin ; C:\Program Files (x86)\PostgreSQL\9.3\lib ( bin lib). , .:)

+2

Source: https://habr.com/ru/post/1535418/


All Articles