【发布时间】:2018-10-15 04:58:22
【问题描述】:
一直在尝试使用 heroku pg:pull 将我的远程数据库拉入本地环境,之前没有问题,但此时命令正在返回:
/bin/sh: pg_dump: command not found
▸ pg_dump errored with 127
pg_restore: [custom archiver] could not read from input file: end of file
在这里寻找答案并更新了一些主题提到的 bash 配置文件:
导出 PATH=/Applications/Postgres.app/Contents/Versions/10/bin:$PATH
重新启动并重新启动终端,但无济于事。有谁知道怎么回事?
【问题讨论】:
-
我想你会在这里找到你的解决方案stackoverflow.com/a/11391586/6392696
-
可以确认也有这个问题。手动备份,从耐久性选项卡下载,并根据@nourza 的链接手动运行 pg_restore 似乎正在工作
-
我会把它放在新的答案中
标签: postgresql heroku