chore: deploy-server.shにroutes/ディレクトリの転送を追加

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
posimai 2026-04-11 00:19:05 +09:00
parent 2cd7795202
commit 04b40a5b67
1 changed files with 9 additions and 0 deletions

View File

@ -25,6 +25,15 @@ echo "→ Step 1: server.js を VPS に転送..."
scp -i "$VPS_KEY" -o BatchMode=yes "$SERVER_FILE" "$VPS_HOST:$APP_DIR/server.js"
echo " 転送完了"
echo ""
echo "→ Step 1b: routes/ を VPS に転送..."
ROUTES_DIR="$SCRIPT_DIR/routes"
if [ -d "$ROUTES_DIR" ]; then
ssh -i "$VPS_KEY" -o BatchMode=yes "$VPS_HOST" "mkdir -p $APP_DIR/routes"
scp -i "$VPS_KEY" -o BatchMode=yes -r "$ROUTES_DIR"/* "$VPS_HOST:$APP_DIR/routes/"
echo " routes/ 転送完了"
fi
echo ""
echo "→ Step 2: コンテナ再起動..."
ssh -i "$VPS_KEY" -o BatchMode=yes "$VPS_HOST" "