【发布时间】:2016-10-11 08:58:57
【问题描述】:
自从我开始将 laravel 部署到弹性 beantalk 后,我在 AWS 的弹性 beantalk 上运行了相同的部署挂钩,但在最近的一次更新中,由于最新的作曲家发生了一些事情,它未能部署。
在弹性beantalk上使用composer部署的常用方法是更新composer,然后用它来安装你的包,在我收到以下错误之前一直运行良好
Script php artisan clear-compiled handling the pre-update-cmd event returned with an error
[RuntimeException]
Error Output: PHP Warning: require(/var/app/ondeck/bootstrap/../vendor/autoload.php): failed to open stream: No such file or directory in /var/app/ondeck/bootstrap/autoload.php on line 17
PHP Fatal error: require(): Failed opening required ‘/var/app/ondeck/bootstrap/../vendor/autoload.php’ (include_path=’.:/usr/share/pear:/usr/share/php’) in /var/app/ondeck/bootstrap/autoload.php on line 17
如你所见,laravel 无法从 vendor 文件夹中找到 autoload 文件,这是由于 composer 运行不正确
错误是什么以及如何解决。
【问题讨论】:
-
你能粘贴你的 autouploader.php 文件吗?
标签: laravel amazon-web-services