我使用Git创建了一个新的分支,对我的代码应用了一些更新,在我的登台服务器上检查了该分支,现在我无法运行任何与编辑器相关的东西.
我已经为composer.json添加了一些新的软件包,这些软件包可以在我的开发环境中运行,但是当我尝试composer update
登台环境时,我发现类没有找到与尚未下载的类有关的错误.
我试过了
composer update composer dump-autoload php artisan clear-compiled php artisan dump-autoload php artisan optimize
但都会导致以下错误
PHP Fatal error: Class 'Artdarek\OAuth\OAuthServiceProvider' not found in /var/www/sites/x/bootstrap/compiled.php on line 4321 Script php artisan clear-compiled handling the pre-update-cmd event returned with an error [RuntimeException] Error Output: PHP Fatal error: Class 'Artdarek\OAuth\OAuthServiceProvider' not found in /var/www/sites/x/bootstrap/compiled.php on line 4321
还有什么可以让作曲家下载新文件?
php artisan optimize --force
该命令将重新生成 /bootstrap/compiled.php
在--force
需要ARG当你的环境是在调试模式下重新生成的文件.