pelagia-portal/automation/staging-tunnel.cmd
Hardik b472c149b4 feat(automation): lock staging to SSH tunnel + dev banner + desktop shortcut
- staging-up.sh binds the dev server to 127.0.0.1 (tunnel-only, no public access)
  and sets NEXT_PUBLIC_ENV_LABEL so the 'INTERNAL DEV / STAGING - NOT PRODUCTION'
  banner shows.
- staging-tunnel.cmd: Windows launcher that opens the SSH tunnel + browser
  (wired to a desktop shortcut).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-19 11:59:25 +05:30

15 lines
767 B
Batchfile

@echo off
title Pelagia Staging Tunnel (localhost:3200)
echo ============================================================
echo Pelagia Portal - STAGING (internal dev only)
echo Tunneling pms1 port 3200 to http://localhost:3200
echo Keep this window OPEN while testing. Close it to disconnect.
echo ============================================================
echo.
echo Connecting... your browser will open in a few seconds.
REM Open the browser shortly after the tunnel comes up.
start "" cmd /c "ping -n 6 127.0.0.1 >nul & explorer http://localhost:3200"
ssh -i "%USERPROFILE%\.ssh\peliagia_portal_ubuntu22_ed25519" -o StrictHostKeyChecking=accept-new -N -L 3200:localhost:3200 shad0w@87.76.191.133
echo.
echo Tunnel closed. You can close this window.
pause