Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with cached routes #102

Open
Gamerboy59 opened this issue Oct 6, 2023 · 5 comments
Open

Error with cached routes #102

Gamerboy59 opened this issue Oct 6, 2023 · 5 comments

Comments

@Gamerboy59
Copy link
Contributor

After I cached routes with php artisan route:cache I'm getting a 500 error for HEAD not supported for /.. I suppose something is wrong or outdated at the routes config in the routes/* folder but I couldn't find it at a glance. Only the core / root path appears to be effected.

@cp6
Copy link
Owner

cp6 commented Oct 6, 2023

Shared hosting environment?

@Gamerboy59
Copy link
Contributor Author

Gamerboy59 commented Oct 6, 2023

Yes, Plesk. Using this webapp without pre-caching, so all requests are handled by php, it's working fine,

@cp6
Copy link
Owner

cp6 commented Oct 9, 2023

Ok I cant really find any answers for this currently, was it working previously in this environment?

@Gamerboy59
Copy link
Contributor Author

No, this error appears for a while already. I couldn't find an answer but it's likely this is related to #57. I tested another Laravel app (not my-idlers) and it's working fine when caching routes hence I guess it's something with this app and not my webserver. Additionally, I was just testing it on my other cPanel host but same error. It works as long as the routes aren't cached so I removed this command from my git provisioneer plugin.

@cp6
Copy link
Owner

cp6 commented Oct 10, 2023

Are you able to please show the output of php artisan route:list ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants