Skip to content

Instantly share code, notes, and snippets.

Avatar

Tim timleland

View GitHub Profile
@rap2hpoutre
rap2hpoutre / laravel-forge-deploy.sh
Last active Aug 28, 2020
Laravel Forge deploy script without downtime
View laravel-forge-deploy.sh
# stop script on error signal
set -e
# remove old deployment folders
if [ -d "/home/forge/deploy" ]; then
rm -R /home/forge/deploy
fi
if [ -d "/home/forge/backup" ]; then
rm -R /home/forge/backup
fi
You can’t perform that action at this time.