Skip to content

Instantly share code, notes, and snippets.

View npostman's full-sized avatar

Niels npostman

View GitHub Profile
@npostman
npostman / deploy.sh
Last active July 17, 2022 14:11 — forked from BenSampo/deploy.sh
Laravel deploy script
# Change to the project directory
cd $FORGE_SITE_PATH
# Turn on maintenance mode
$FORGE_PHP artisan down --render='errors::503' --retry=30 || true
# Pull the latest changes from the git repository
# git reset --hard
# git clean -df
git pull origin $FORGE_SITE_BRANCH