Laravel Forge, trying to deploy but get this error: Class 'Illuminate\Html\HtmlServiceProvider' not found
Laravel Forge, trying to deploy but get this error: Class 'Illuminate\Html\HtmlServiceProvider' not found
我正在尝试在 forge 上部署我的 Laravel 应用程序,但是当我在我的服务器上查看它时,我收到以下错误,但在我的本地机器上一切正常:
FatalErrorException in ProviderRepository.php line 150:
Class 'Illuminate\Html\HtmlServiceProvider' not found
我假设我需要在某处进行作曲家更新?我尝试将它添加到 'deploy script' 和 运行 中,但没有成功...
我该如何解决这个问题?
所以看起来它可能是一个缓存问题,因为我刚刚通过将 composer update
添加到部署脚本然后部署它再次尝试它并且一切正常:)
cd /home/forge/default
git pull origin master
composer install
php artisan migrate --force
composer update <-- Add this onto the end
我正在尝试在 forge 上部署我的 Laravel 应用程序,但是当我在我的服务器上查看它时,我收到以下错误,但在我的本地机器上一切正常:
FatalErrorException in ProviderRepository.php line 150:
Class 'Illuminate\Html\HtmlServiceProvider' not found
我假设我需要在某处进行作曲家更新?我尝试将它添加到 'deploy script' 和 运行 中,但没有成功...
我该如何解决这个问题?
所以看起来它可能是一个缓存问题,因为我刚刚通过将 composer update
添加到部署脚本然后部署它再次尝试它并且一切正常:)
cd /home/forge/default
git pull origin master
composer install
php artisan migrate --force
composer update <-- Add this onto the end