Files
gitlab-instance-0a899031_no…/deploy/deploy.sh
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)"