1
自從我開始將laravel部署到彈性beanstalk以及最近更新後,由於最近的作曲者發生了某些事情,我未在AWS的彈性beanstalk上運行相同的部署鉤子。Composer在彈性beanstack部署上失敗
常見方法有彈性青苗作曲家部署是更新作曲家然後用它來安裝你的包,這工作得很好,直到我得到了以下錯誤
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 couldn」 t找到供應商文件夾中的自動加載文件,這是作曲家未正確運行的結果
錯誤以及如何解決該問題。
你可以粘貼你的autouploader.php文件嗎? – error2007s