Redesign landing page and add Caddy deployment for nomadro.com
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
15
deploy/deploy.sh
Normal file
15
deploy/deploy.sh
Normal file
@@ -0,0 +1,15 @@
|
||||
#!/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)"
|
||||
Reference in New Issue
Block a user