Deployments & rollbacks
Ship to any environment with gated approvals, health checks, and one-command rollback.
A deploy stage targets an environment. Environments
carry their own secrets, protection rules, and deploy history.
Deploy to an environment#
poyesis deploy --env productionOr as a pipeline stage that runs automatically after tests pass:
pipeline:
- stage: deploy
needs: [build, test]
environment: production
run: poyesis deploy --env productionHealth checks#
Attach a health check so a deploy is only marked successful once your service responds.
- stage: deploy
environment: production
healthcheck:
url: https://api.poyesis.dev/healthz
expect: 200
timeout: 90s
run: poyesis deploy --env productionIf the health check fails within timeout, the deploy is marked failed and — when
autoRollback is enabled — the previous release is restored automatically.
Rollback#
Every deploy is versioned. Roll back to the previous release in one command:
poyesis rollback --env productionOr pin a specific release:
poyesis rollback --env production --to release_8f21c4poyesis releases --env productionPoyesis re-points the environment at the chosen release and re-runs its health check.
The dashboard shows the active release and who triggered the rollback.
Rollback restores your application, not your data. Database migrations are not reversed automatically — design migrations to be backward compatible.
Deploy strategies#
Replace instances in batches. The default — zero downtime, no extra capacity needed.