当我尝试做的时候heroku pg:pull DATABASE_URL myappspassword
,我收到此错误:
my-computer:a-folder (master*) · heroku pg:pull DATABASE_URL myappspassword
! sh: createdb: command not found
!
! Unable to create new local database. Ensure your local Postgres is working and try again.
这一次谷歌搜索没有返回结果。我想知道这是否与我这样做时的事实有关which psql
,没有结果。也许我需要对 pgAdmin 做一些特殊的事情才能使其正常工作(例如导出命令行工具)?
您是否偶然在 Mac 上使用Postgres 应用程序 http://postgresapp.com/?
如果是这样,问题可能是createdb
不在你的路径上。尝试通过将以下内容插入到中来添加它~/.bash_profile
.
export PATH=$PATH:/Applications/Postgres.app/Contents/Versions/9.4/bin
然后运行source ~/.bash_profile
然后再试一次。
Postgres 应用程序网站上有更多信息:http://postgresapp.com/documentation/cli-tools.html http://postgresapp.com/documentation/cli-tools.html
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)