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:
@@ -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/"
|
||||
|
||||
Reference in New Issue
Block a user