Skip to content

Deploys, rollbacks and sleep

Every deploy is a new version of the project (v1, v2, …). The new version starts next to the live one and replaces it once it’s up, so visitors keep being served meanwhile (except fragile services, which stop first).

A deployment ends up running, failed (with the reason), or degraded: up, but a service keeps crashing or couldn’t start. The project page shows which service and why, with its logs.

Cargo plan. Connect a project to a GitHub or GitLab repository (project Settings). Pick the branch and the path of the compose file. Every push to that branch then builds the images (build: works here) and deploys the result.

Pull-request previews (Cargo plan): each pull request gets its own temporary copy of the project with its own addresses, updated on every push to the PR and removed when it’s closed or merged.

Cargo plan. Every earlier version that once ran successfully has a Roll back button. Rolling v5 back to v3 deploys v3 again as v6; nothing is erased, and a rollback can be rolled back too. A version built from a push is rebuilt from the same commit.

A rollback does not undo:

  • data: volumes belong to the project, not a version, so a database migration v5 ran stays applied;
  • environment variables: the current ones apply.

On the free plan, a project that gets no traffic for 15 minutes is put to sleep, and wakes on its next visit (the visitor sees a short “waking up” page). On Cargo you can turn on Always on per project.

Cargo plan. Park a project you don’t need for a while: it’s backed up, then its containers and storage are removed, so it costs nothing to keep. Unpark restores it from that backup.