Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Deploy script for Laravel projects.
# 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