Skip to content

Instantly share code, notes, and snippets.

View nolpersen's full-sized avatar

Rizali nolpersen

View GitHub Profile
#zero downtime deployment nextjs without vercel
echo "Deploy starting..."
git pull
npm install || exit
BUILD_DIR=temp npm run build || exit
@nolpersen
nolpersen / deploy.sh
Created April 30, 2024 03:41 — forked from BenSampo/deploy.sh
Laravel deploy script
# Change to the project directory
cd $FORGE_SITE_PATH
# Turn on maintenance mode
php artisan down || true
# Pull the latest changes from the git repository
# git reset --hard
# git clean -df
git pull origin $FORGE_SITE_BRANCH