deploy.ccSelf-hosting deploy handbook
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.

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,
      },
    },
  ],
};

Inputs are restricted to safe characters; invalid values fall back to defaults.