[英]Laravel InvalidArgumentException in Google Cloud Platform
I published my project on Google Cloud Platform (with gCloud). 我在带有gCloud的Google Cloud Platform上发布了我的项目。 But these are the errors:
但是这些是错误:
First Error: 第一个错误:
at FileViewFinder->findInPaths('welcome', array('/Applications/MAMP/htdocs/project-laravel/resources/views'))
在FileViewFinder-> findInPaths('welcome',array('/ Applications / MAMP / htdocs / project-laravel / resources / views'))
Second error in other route: 其他路线的第二个错误:
file_put_contents(/Applications/MAMP/htdocs/project-laravel/storage/framework/views/0e930ae47a8b122c0468c37872fd9792aed8b643.php): failed to open stream: No such file or directory
file_put_contents(/Applications/MAMP/htdocs/project-laravel/storage/framework/views/0e930ae47a8b122c0468c37872fd9792aed8b643.php):无法打开流:没有此类文件或目录
In my local, I clear cache and updated the composer. 在本地,我清除了缓存并更新了作曲家。 And after that, I published the code.
之后,我发布了代码。 How can I fix these errors in GCP?
如何在GCP中修复这些错误?
/Applications/MAMP/htdocs/project-laravel/storage/framework/views/0e930ae47a8b122c0468c37872fd9792aed8b643.php
/Applications/MAMP/htdocs/project-laravel/storage/framework/views/0e930ae47a8b122c0468c37872fd9792aed8b643.php
Is a path on your Macintosh, it doesn't exists on App Engine. 是您的Macintosh上的路径,在App Engine中不存在。 Consider this answer , which talks about the exactly same issue but for Windows with XAMP.
考虑这个答案 ,它讨论的是完全相同的问题,但对于带有XAMP的Windows。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.