[英]deploying laravel into Nginx getting error “failed to open stream: No such file or directory”
I have a problem with deploying laravel into my Nginx. 我在将laravel部署到我的Nginx时遇到问题。 I deployed my laravel app thru github.com 我通过github.com部署了我的laravel应用
but when I execute php artisan config:cache
or php artisan make:auth
但是当我执行php artisan config:cache
或php artisan make:auth
This is the error I get: 这是我得到的错误:
PHP Warning: require(/var/www/gafsolutions.com/html/laravel/vendor/autoload.php): failed to open stream: No such file or directory in /var/www/gafsolutions.com/html/laravel/artisan on line 18 PHP Fatal error: require(): Failed opening required '/var/www/gafsolutions.com/html/laravel/vendor/autoload.php' (include_path='.:/usr/share/php') in /var/www/gafsolutions.com/html/laravel/artisan on line 18 PHP警告:require(/var/www/gafsolutions.com/html/laravel/vendor/autoload.php):无法打开流:/var/www/gafsolutions.com/html/laravel/artisan中没有此类文件或目录在第18行上,PHP发生致命错误:require():无法在/中打开所需的'/var/www/gafsolutions.com/html/laravel/vendor/autoload.php'(include_path ='。:/ usr / share / php')第18行的var / www / gafsolutions.com / html / laravel / artisan
First, make sure you have set up a composer properly composer install
It will just install all the dependencies as specified in the composer.lock file 首先,确保已正确设置了composer composer install
它将仅安装composer.lock文件中指定的所有依赖项
If you have already installed then run this command: composer dump-autoload
It will clean up all compiled files and their paths. 如果已经安装,请运行以下命令: composer dump-autoload
它将清除所有编译的文件及其路径。
After, run this command: composer update --no-scripts
It will Skips execution of scripts defined in composer.json file. 之后,运行以下命令: composer update --no-scripts
将跳过执行composer.json文件中定义的脚本。
Then run this command: composer update
It will update your depencencies as they are specified in composer.json 然后运行以下命令: composer update
它将更新在composer.json中指定的依赖关系
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.