Skip to content

Instantly share code, notes, and snippets.

@gunharth
Created September 12, 2018 06:26
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 gunharth/7ba879d65ec96f0895eefe8c834347f6 to your computer and use it in GitHub Desktop.
Save gunharth/7ba879d65ec96f0895eefe8c834347f6 to your computer and use it in GitHub Desktop.
Collection of forge deployment scripts used for:
#jodel:
cd /home/forge/jodel.gunharth.io
git pull origin master
composer install --no-dev --optimize-autoloader
php artisan migrate
php artisan optimize
#php artisan route:clear
#php artisan route:cache
php artisan cache:clear
#ping
cd /home/forge/ping.gunharth.io
git pull origin production
git submodule update --init --remote
composer install --no-interaction --prefer-dist --optimize-autoloader
php artisan cache:clear
php artisan responsecache:flush
php artisan config:cache
php artisan route:cache
echo "" | sudo -S service php7.2-fpm reload
#gunichat
cd /home/forge/chat.gunharth.io
git pull origin master
composer install --no-interaction --prefer-dist --optimize-autoloader
php artisan cache:clear
php artisan config:cache
#php artisan route:cache
echo "" | sudo -S service php7.2-fpm reload
#if [ -f artisan ]
#then
# php artisan migrate --force
#fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment