Skip to content

Instantly share code, notes, and snippets.

@germanow
Last active June 17, 2021 06:00
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 germanow/ca5867795e4a6d0c67e5269dff040e57 to your computer and use it in GitHub Desktop.
Save germanow/ca5867795e4a6d0c67e5269dff040e57 to your computer and use it in GitHub Desktop.
Deploy laravel
#!/usr/bin/env bash
# change working directory to self-update dir
parent_path=$( cd "$(dirname "${BASH_SOURCE[0]}")" ; pwd -P )
cd "$parent_path"
git pull &&
composer install --optimize-autoloader --no-dev &&
php artisan migrate &&
php artisan route:clear &&
php artisan cache:clear &&
php artisan config:clear &&
php artisan optimize:clear &&
php artisan config:cache &&
php artisan route:cache
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment