#!/bin/bash set -euo pipefail DEPLOY_DIR="/opt/tunnel-rokojori" SERVICE="tunnel-rokojori" NGINX_CONF="/etc/nginx/sites-available/tunnel-rokojori.conf" echo "=== Deploying Rokojori Tunnel Server ===" cd "$DEPLOY_DIR" echo "→ Pulling latest code…" git pull echo "→ Installing dependencies…" npm install --omit=dev echo "→ Restarting service…" sudo systemctl restart "$SERVICE" sudo systemctl status "$SERVICE" --no-pager -l echo "=== Done ==="