From 04b40a5b67715fc87e7cea3835a418d4a42ee38b Mon Sep 17 00:00:00 2001 From: posimai Date: Sat, 11 Apr 2026 00:19:05 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20deploy-server.sh=E3=81=ABroutes/?= =?UTF-8?q?=E3=83=87=E3=82=A3=E3=83=AC=E3=82=AF=E3=83=88=E3=83=AA=E3=81=AE?= =?UTF-8?q?=E8=BB=A2=E9=80=81=E3=82=92=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Sonnet 4.6 --- deploy-server.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/deploy-server.sh b/deploy-server.sh index c2047d46..2c49d481 100644 --- a/deploy-server.sh +++ b/deploy-server.sh @@ -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" "