New

Cache Config, Routes and Views for Production

Compiles config, routes and Blade views into caches. Run as the web user or PHP-FPM cannot read what it wrote.

Cached config ignores .env at runtime, so re-run this after any environment change. Running it as root is the classic cause of a permission-denied error on the first request after a deploy.

When you need this: The last step of a production deploy, after code and dependencies are in place.

Variables

Files this creates must be owned by the user PHP-FPM runs as.

Command


        
2 views 0 copies
Log in to rate
Log in to save

Free account. Save snippets into your own collections.