Heroku-未找到视图-FileFinderView InvalidArgumentException [英] Heroku - View Not Found - FileFinderView InvalidArgumentException

查看:77
本文介绍了Heroku-未找到视图-FileFinderView InvalidArgumentException的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这消耗了我生命的最后两天.在本地,一切正常,但是当我的代码部署到Heroku时,Laravel无法找到index视图.据我了解,这是一个缓存问题,因此我尝试了Artisan的大多数命令来清理缓存:

This is consuming the last 2 days of my life. Locally everything is working fine but when my code is deployed to Heroku, Laravel can't find the index view. It's my understanding this is some caching issue, so I have tried most of Artisan's commands to clean the cache:

php artisan config:cache
php artisan route:cache
php artisan view:clear
php artisan clear-compiled

这是我的路线,我正在提供SPA:

This is my route, I'm serving a SPA:

Route::get('/{any}', 'HomeController@main')->where('any', '.*');

这是我视图中的堆栈跟踪:

And this is the stack trace on my view:

我已经清理了bootstrap/cache文件夹,说实话我没有主意.有人对此有启发吗?谢谢

I have cleaned the bootstrap/cache folder and honestly I'm out of ideas. Does someone have a light on this one? Thanks

推荐答案

请使用全方位缓存清除命令:

Please use the all around cache clearing command :

php artisan optimize:clear

这篇关于Heroku-未找到视图-FileFinderView InvalidArgumentException的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆