Files
OmniRoute/.agents/workflows/deploy-vps-local.md

952 B

description
description
Deploy the latest OmniRoute code to the Local VPS (192.168.0.15)

Deploy to Local VPS Workflow

Deploy OmniRoute to the Local VPS using npm pack + scp + PM2.

Local VPS: 192.168.0.15 Process manager: PM2 (omniroute) Port: 20128

Steps

1. Build + pack locally

// turbo

cd /home/diegosouzapw/dev/proxys/9router && npm run build:cli && npm pack --ignore-scripts

2. Copy to Local VPS and install

// turbo-all

scp omniroute-*.tgz root@192.168.0.15:/tmp/
ssh root@192.168.0.15 "npm install -g /tmp/omniroute-*.tgz --ignore-scripts && cd /usr/lib/node_modules/omniroute/app && npm rebuild better-sqlite3 && pm2 delete omniroute 2>/dev/null; pm2 start /root/.omniroute/ecosystem.config.cjs --update-env && pm2 save && echo '✅ Local done'"

3. Verify the deployment

curl -s -o /dev/null -w 'LOCAL HTTP %{http_code}\n' http://192.168.0.15:20128/