Skip to content
Node.js Apps

Automatic deploys and rolling back

Every push ships a new version with zero downtime; if something breaks, roll back in one click.

A deployment clones your code (or uses the ZIP), installs dependencies, runs the build and starts the new version next to the live one. Only when the health check path responds does traffic switch over: zero downtime. If something fails, the previous version keeps running.

Deploy on every push (webhook)

  1. In your app → Settings → Automatic deploys, keep the switch on and copy the Webhook URL (and the secret, if shown).
  2. GitHub: Settings → Webhooks → Add webhook. Payload URL: the URL; Content type: application/json; Secret: the secret; event: Just the push event.
  3. GitLab: Settings → Webhooks. URL and Secret token; check Push events. Bitbucket: Repository settings → Webhooks, with the URL as is and the Repository push trigger.

Only pushes to the configured branch trigger a deployment.

The history

  • In Deployments you see each version with its number, commit, what triggered it (push, manual, rollback) and how long it took. View log shows the build live.
  • Cancel stops a deployment in progress; the live version doesn't change.
  • Roll back to this version creates a new deployment with that version's code and configuration.
  • Deploy now with No cache does a fresh install (handy if you changed package manager or something got stuck).

Ask the assistant

Still have a question about this? Ask the assistant.

Was this article helpful?

Related articles