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
myapp.service
# /etc/systemd/system/myapp.service (deploy.cc) [Unit] Description=myapp After=network-online.target Wants=network-online.target [Service] Type=simple User=www-data Group=www-data WorkingDirectory=/opt/myapp Environment=PORT=3000 EnvironmentFile=-/opt/myapp/.env ExecStart=/usr/bin/node /opt/myapp/server.js Restart=on-failure RestartSec=5 # Hardening NoNewPrivileges=true PrivateTmp=true ProtectSystem=full ProtectHome=true ReadWritePaths=/opt/myapp [Install] WantedBy=multi-user.target
- Save as /etc/systemd/system/myapp.service, then systemctl daemon-reload && systemctl enable --now myapp
- Logs: journalctl -u myapp -f
- ExecStart needs an absolute path to the binary.
Inputs are restricted to safe characters; invalid values fall back to defaults.