nomadro/deploy/deploy.sh
eric d2b381ac7b Redesign landing page and add Caddy deployment for nomadro.com
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-11 11:25:50 -05:00

16 lines
303 B
Bash

#!/bin/bash
# 日常更新部署
set -euo pipefail
APP_DIR="/var/www/nomadro.com"
BRANCH="${BRANCH:-test}"
cd "$APP_DIR"
git fetch origin
git checkout "$BRANCH"
git pull origin "$BRANCH"
pnpm install --frozen-lockfile
pnpm build
systemctl restart nomadro
echo "Deployed $(git rev-parse --short HEAD)"