Skip to content

Instantly share code, notes, and snippets.

@vmitchell85
Forked from sahibalejandro/deploy.sh
Last active May 15, 2018 16:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vmitchell85/aab17a0b020a27107394854600fa1947 to your computer and use it in GitHub Desktop.
Save vmitchell85/aab17a0b020a27107394854600fa1947 to your computer and use it in GitHub Desktop.
Deploy script for Laravel projects.
# Shutdown the laravel app
php artisan down
# Pull down changes
git pull
# 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