Last active
January 8, 2024 17:48
-
-
Save sahibalejandro/a1e74014a08c3073c4aa to your computer and use it in GitHub Desktop.
Deploy script for Laravel projects.
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
# Shutdown the laravel app | |
php artisan down | |
# Install new composer packages | |
composer install --no-dev --prefer-dist | |
# Cache boost configuration and routes | |
php artisan cache:clear | |
php artisan config:cache | |
php artisan route:cache | |
# Sync database changes | |
php artisan migrate | |
# Install new node modules | |
npm install | |
# Build assets when using Laravel Elixir | |
#gulp --production | |
# Build assets when using Laravel Mix | |
#npm run production | |
# Rise from the ashes | |
php artisan up | |
echo 'Deploy finished.' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment