deploy.cc / Generator
Deploy config generator
Pick a type, fill in options, get a ready-to-use file. Outputs are tested with actionlint, hadolint, systemd-analyze and docker build before release; action versions checked 2026-11-13.
Actions → Cloudflare PagesActions → GitHub PagesActions → SSH deploy to VPSActions → Docker build & pushDockerfiledocker-compose.ymlsystemd unitPM2 ecosystem
ecosystem.config.js
// ecosystem.config.js (deploy.cc) — pm2 start ecosystem.config.js
module.exports = {
apps: [
{
name: "myapp",
script: "server.js",
cwd: "/opt/myapp",
instances: 1,
exec_mode: "fork",
max_memory_restart: "512M",
env: {
NODE_ENV: "production",
PORT: 3000,
},
},
],
};
- Start: pm2 start ecosystem.config.js; boot: pm2 startup && pm2 save.
- Set instances to max for cluster mode.
Inputs are restricted to safe characters; invalid values fall back to defaults.