Use when deploying the minecraft-frontend Astro app to production. Triggers on "deploy", "push to prod", "ship it", or when changes to disqt.com/minecraft/ need to go live.
Deploys the minecraft-frontend Astro SSR app to disqt.com/minecraft/.
cd C:/Users/leole/Documents/code/minecraft-frontend
git status --short
If there are uncommitted changes, ask the user whether to commit first or deploy as-is.
git push origin HEAD
ssh dev "cd /home/dev/minecraft-frontend && git pull && npm run build && sudo systemctl restart minecraft-frontend"
NEVER run overlapping build commands — causes OOM crash on the VPS.
curl -sI "https://disqt.com/minecraft/" | head -3
curl -sI "https://disqt.com/minecraft/chunks/" | head -3
Expect HTTP 200 on both.
ssh dev "cd /home/dev/minecraft-frontend && git fetch origin && git checkout <branch>"npm run build fails, do NOT restart the service — fix the build error first/minecraft/