deploy-vps-both-cc

Deploy OmniRoute builds to Akamai and local VPS via SCP and PM2.

44.0k|5.9k|Updated Feb 13, 2026
One-click install
npx skills add https://github.com/diegosouzapw/OmniRoute --skill deploy-vps-both-cc
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: deploy-vps-both-cc
Source: https://github.com/diegosouzapw/OmniRoute/tree/main/.agents/skills/deploy-vps-both-cc
Command: npx skills add https://github.com/diegosouzapw/OmniRoute --skill deploy-vps-both-cc

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill solves the problem of reliably updating OmniRoute on multiple production servers without manual, error-prone steps, ensuring the correct version runs in both locations.

Core Features & Use Cases

  • One command flow for dual-server deployment: Builds and packages OmniRoute once, then copies the same artifact to both the Akamai VPS and the Local VPS.
  • Production restart via PM2: Reinstalls the packaged build globally, rebuilds the better-sqlite3 native dependency, and restarts the running omniroute process using the PM2 ecosystem config with environment updates.
  • Post-deploy health verification: Confirms both endpoints respond with expected HTTP status codes on the configured port.

Use case: After a new release, deploy the latest OmniRoute build to both 69.164.221.35 (Akamai VPS) and 192.168.0.15 (Local VPS) and verify each server is serving traffic on port 20128.

Quick Start

Run the workflow to build a deployable package locally, SCP it to both VPS hosts, install and restart OmniRoute with PM2, then verify both servers respond on port 20128.

Frequently Asked Questions about deploy-vps-both-cc

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I deploy a Node.js application to multiple VPS environments simultaneously?

Deploying a Node.js application to multiple VPS environments simultaneously requires building and packaging the artifact once, using SCP to transfer it to both hosts, and restarting the process with PM2. This ensures a consistent production rollout across servers.

What is the best way to restart a PM2 ecosystem process after an SCP deployment?

The best way to restart a PM2 ecosystem process after SCP deployment is to install the package globally, rebuild native dependencies like better-sqlite3, and use the PM2 ecosystem config to apply environment updates and restart the running process.

How does npm pack work for creating consistent deployment artifacts across remote servers?

npm pack works for consistent deployment artifacts by bundling the application locally into a single tarball. You then transfer this exact artifact via SCP to remote servers, guaranteeing both targets run the identical build without environment-specific inconsistencies.

Can I deploy to both a cloud Akamai VPS and a local LAN VPS using the same workflow?

Yes, you can deploy to both a cloud Akamai VPS and a local LAN VPS using the same workflow. The process builds once locally, transfers the package to both IP targets, and performs global npm installs with PM2 restarts on each host.

How do I verify a VPS deployment and run a health check after a production rollout?

To verify a VPS deployment and run a health check after a production rollout, send an HTTP request to the configured port on each server. The process confirms successful deployment by checking that both endpoints respond with expected HTTP status codes.

Why do I need to rebuild better-sqlite3 when restarting an application with PM2?

You need to rebuild better-sqlite3 when restarting an application with PM2 because it is a native dependency. Rebuilding ensures the compiled binary matches the specific operating system and architecture of the target VPS during the global npm install step.