简体   繁体   English

Laravel / Envoyer生产错误 - 类视图不存在

[英]Laravel / Envoyer production error - Class view does not exist

I recently created a new production deployment for a new Laravel-based system. 我最近为一个新的基于Laravel的系统创建了一个新的生产部署。 Initially, I had a few permissions issues with the storage folder that I resolved pretty easily. 最初,我对存储文件夹有一些权限问题,我很容易解决。 Once I resolved those, I had the app running correctly, but upon my next deployment (with Envoyer), I ran into a different issue that I haven't been able to pin down. 一旦我解决了这些问题,我就让应用程序正常运行,但是在我的下一次部署(使用Envoyer)时,我遇到了一个我无法确定的问题。

I'm now getting a fatal PHP error that I wasn't getting before: 我现在得到一个致命的PHP错误,我以前没有得到:

PHP Fatal error: Uncaught ReflectionException: Class view does not exist in /var/www/Core/releases/20170804125010/vendor/laravel/framework/src/Illuminate/Container/Container.php:719\\nStack trace:\\n#0 /var/www/Core/releases/20170804125010/vendor/laravel/framework/src/Illuminate/Container/Container.php(719): ReflectionClass->__construct('view')\\n#1 /var/www/Core/releases/20170804125010/vendor/laravel/framework/src/Illuminate/Container/Container.php(598): Illuminate\\Container\\Container->build('view')\\n#2 /var/www/Core/releases/20170804125010/vendor/laravel/framework/src/Illuminate/Container/Container.php(567): Illuminate\\Container\\Container->resolve('view')\\n#3 /var/www/Core/releases/20170804125010/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(708): Illuminate\\Container\\Container->make('view')\\n#4 /var/www/Core/releases/20170804125010/vendor/laravel/framework/src/Illuminate/Container/Container.php(1139): Illuminate\\Foundation\\Application->make('view')\\n#5 /var/www/Cor PHP致命错误:未捕获ReflectionException:类视图不存在于/var/www/Core/releases/20170804125010/vendor/laravel/framework/src/Illuminate/Container/Container.php:719\\nStack trace:\\ n#0 / var / www / Core / releases / 20170804125010 / vendor / laravel / framework / src / Illuminate / Container / Container.php(719):ReflectionClass - > __ construct('view')\\ n#1 / var / www / Core / releases /20170804125010/vendor/laravel/framework/src/Illuminate/Container/Container.php(598):Illuminate \\ Container \\ Container-> build('view')\\ n#2 / var / www / Core / releases / 20170804125010 / vendor / laravel / framework / src / Illuminate / Container / Container.php(567):Illuminate \\ Container \\ Container-> resolve('view')\\ n#3 / var / www / Core / releases / 20170804125010 / vendor / laravel /framework/src/Illuminate/Foundation/Application.php(708):Illuminate \\ Container \\ Container-> make('view')\\ n#4 / var / www / Core / releases / 20170804125010 / vendor / laravel / framework / src / Illuminate / Container / Container.php(1139):Illuminate \\ Foundation \\ Application-> make('view')\\ n#5 / var / www / Cor e/releases/20170804125010/vendor/laravel/framewo in /var/www/Core/releases/20170804125010/vendor/laravel/framework/src/Illuminate/Container/Container.php on line 719 e / releases / 20170804125010 / vendor / laravel / framewo in /var/www/Core/releases/20170804125010/vendor/laravel/framework/src/Illuminate/Container/Container.php on line 719

I've played around with various permissions, tried manually running composer install/update, npm install/etc . 我玩过各种权限,尝试手动运行composer install/update, npm install/etc with no resolution. 没有解决方案。 Any thoughts would be greatly appreciated. 任何想法将不胜感激。

After quite a bit of experimentation with no luck, I think I resolved it. 经过相当多的实验,没有运气,我想我已经解决了。 The Ubuntu user that was set up for deployment with Envoyer was, by default, deploying everything with the 'envoyer' group permissions. 默认情况下,设置为与Envoyer一起部署的Ubuntu用户使用“envoyer”组权限部署所有内容。 This created a permissions conflict with the actual app permissions on Ubuntu. 这与Ubuntu上的实际应用程序权限创建了权限冲突。 I updated the default group for the deploying user to 'www-data' and it seems that everything is cleared up now. 我将部署用户的默认组更新为“www-data”,似乎现在一切都已清除。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM