fix(deploy): use sudo for systemctl restart ims
This commit is contained in:
@@ -17,6 +17,6 @@ echo "==> Syncing to VPS..."
|
|||||||
rsync -az --delete --exclude='.env' -e "ssh -p ${VPS_SSH_PORT}" .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..."
|
echo "==> Restarting service on VPS..."
|
||||||
ssh -p "${VPS_SSH_PORT}" "$VPS" "systemctl restart ims"
|
ssh -p "${VPS_SSH_PORT}" "$VPS" "sudo systemctl restart ims"
|
||||||
|
|
||||||
echo "==> Done. https://ims.setia.com.my/"
|
echo "==> Done. https://ims.setia.com.my/"
|
||||||
|
|||||||
Reference in New Issue
Block a user