【问题标题】:Laravel Squash Migrate Error pg_dump not foundLaravel Squash 迁移错误 pg_dump 未找到
【发布时间】:2021-04-27 08:18:04
【问题描述】:

我的 laravel 应用程序有 3 个容器(php-fpm、nginx、postgresql),我在 php-fpm 容器上执行命令 php artisan schema:dump,发现错误 pg_dump not found

【问题讨论】:

    标签: laravel postgresql migration squash


    【解决方案1】:

    我也有类似的问题,但mysql。为我解决的问题是在我试图执行php artisan schema:dump 命令的容器内安装mysql-client(我在Dockerfile 中添加了RUN apt-get install -y mysql-client,然后我已经重建了所有容器)。我认为你需要做类似的事情,例如RUN apt-get install -y postgresql-client 在你的 Dockerfile 中。

    【讨论】:

      猜你喜欢
      • 2014-08-16
      • 2021-11-07
      • 2021-02-19
      • 2014-02-28
      • 2019-02-07
      • 2015-08-29
      • 2019-02-05
      • 1970-01-01
      • 2017-10-13
      相关资源
      最近更新 更多