feat(ops): add new server runbook and update deploy.sh for ims.setia.com.my

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-07-23 15:30:51 +08:00
co-authored by Claude Sonnet 4.6
parent 509ed90fe7
commit ba3d345531
2 changed files with 349 additions and 4 deletions
+5 -4
View File
@@ -1,7 +1,8 @@
#!/bin/bash
set -e
VPS="root@64.176.82.100"
VPS="setia@ims.setia.com.my"
VPS_SSH_PORT=9321
REMOTE_DIR="/var/www/ims"
PORT=3003
@@ -13,9 +14,9 @@ cp -r .next/static .next/standalone/.next/static
cp -r public .next/standalone/public
echo "==> Syncing to VPS..."
rsync -az --delete --exclude='.env' .next/standalone/ "$VPS:$REMOTE_DIR/"
rsync -az --delete --exclude='.env' -e "ssh -p ${VPS_SSH_PORT}" .next/standalone/ "$VPS:$REMOTE_DIR/"
echo "==> Restarting service on VPS..."
ssh "$VPS" "systemctl restart ims"
ssh -p "${VPS_SSH_PORT}" "$VPS" "systemctl restart ims"
echo "==> Done. http://64.176.82.100/ims/"
echo "==> Done. https://ims.setia.com.my/"