Created
May 7, 2024 11:26
-
-
Save Scemist/3d9bd85f878c1fe3530a40b3a0b8300a to your computer and use it in GitHub Desktop.
How to Optimize Laravel App in Production
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install dependences without the dev-only | |
npm install --omit=dev | |
composer install --no-dev -o | |
# Cache all the Laravel and Composer entities | |
php artisan route:cache | |
php artisan optimize | |
php artisan config:cache | |
composer dump-autoload --optimize |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment