【问题标题】:Problem with executing laravel migrations on Elastic Beanstalk在 Elastic Beanstalk 上执行 laravel 迁移的问题
【发布时间】:2019-12-29 14:09:46
【问题描述】:

我使用 Elastic beanstalk 部署了我的 laravel 应用程序,我需要在远程数据库上执行 php artisan:migrate 命令。 根据Maximilian's 教程,我在 .ebextensions 中创建了 init.config 文件,内容如下:

container_commands:
    01initdb:
        command: "php artisan migrate"

部署的状态是健康的,但它没有创建任何表! 请问有什么线索吗?

【问题讨论】:

    标签: laravel amazon-web-services laravel-5 web-deployment amazon-elastic-beanstalk


    【解决方案1】:

    运行 php artisan config:cache 然后运行 ​​migrate 命令

    【讨论】:

      猜你喜欢
      • 2014-05-23
      • 2019-04-23
      • 2020-09-21
      • 2023-01-03
      • 2015-11-05
      • 2021-06-08
      • 1970-01-01
      • 2015-04-10
      • 2015-07-29
      相关资源
      最近更新 更多