Solution to 404s when deploying on the new Laravel Forge #944
voidgraphics
started this conversation in
General
Replies: 1 comment
-
|
@niels-numbers you may want to consider warning about this in the readme, I suspect a lot of people are going to run into this problem. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
If you're pulling your hair out because you're trying to deploy your site on the new Forge and you get 404 on all your translated routes, here's what's going on:
The new Laravel Forge includes
php artisan optimizeby default in the deploy script now.This package however is not compatible with route caching, which the optimize command does. See issue #927
For now until a fix is available, you will need to remove
php artisan optimizefrom your deploy script and runphp artisan optimize:clearto remove any existing route cache.Beta Was this translation helpful? Give feedback.
All reactions