deploy-vps-both-cc

Solid

Deploy the latest OmniRoute code to BOTH the Akamai VPS and the Local VPS

AI & Automation 6,067 stars 1058 forks Updated today MIT

Install

View on GitHub

Quality Score: 91/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
81
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Deploy to VPS (Both) Workflow Deploy OmniRoute to the production VPSs using `npm pack + scp` + PM2. **Akamai VPS:** `69.164.221.35` **Local VPS:** `192.168.0.15` **Process manager:** PM2 (`omniroute`) **Port:** `20128` **PM2 entry:** `/usr/lib/node_modules/omniroute/app/server.js` > [!IMPORTANT] > The npm registry rejects packages > 100MB, so deployment uses **npm pack + scp**. ## Steps ### 1. Build + pack locally // turbo ```bash cd /home/diegosouzapw/dev/proxys/OmniRoute && rm -f omniroute-*.tgz && rm -rf .next/cache app/.next/cache && npm run build:cli && rm -rf app/logs app/coverage app/.git app/.app-build-backup* && npm pack --ignore-scripts ``` ### 2. Copy to both VPS and install // turbo-all ```bash scp omniroute-*.tgz root@69.164.221.35:/tmp/ && scp omniroute-*.tgz root@192.168.0.15:/tmp/ ``` ```bash ssh root@69.164.221.35 "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 '✅ Akamai done'" ``` ```bash 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 ```bash curl -s -o /dev/null -w 'AKAMAI HTTP %{http_c...

Details

Author
diegosouzapw
Repository
diegosouzapw/OmniRoute
Created
3 months ago
Last Updated
today
Language
TypeScript
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category