Skip to Content
LogiStackDocs
Deploy

Deployments, rollbacks and live logs

How a LogiStack deployment goes from queued to ready, with live build logs, rolling updates, release commands, cancel, rollback and Review changes.

A deployment is one attempt to bring a service to a new version: it clones and builds the source (or pulls the image), runs any release command, and rolls the new image out replica by replica. Every deployment keeps its log, so you can follow a build live, see why one failed, and roll back to an earlier image without rebuilding.

Start a deployment

Deployments start from:

TriggerWhen
ManualYou select Deploy in the service header
PushA Git push, tag or release matches the service's deploy triggers
WebhookYour CI calls the deploy webhook. See Git webhooks
RollbackYou select Roll back to this on an earlier deployment
ScheduleA schedule runs a deploy. See Schedules
APIThe REST API or MCP server. See REST API

Open the service

Open the project and select the service.

Select Deploy

Select Deploy in the header. The Deployments tab opens on the new deployment and follows its log.

The Deployments tab of the web service: a list of deployments on the left and the live build log of the selected one on the right

Deployment statuses

A deployment moves through these statuses. The list on the left of the Deployments tab shows each one with its commit, trigger, reason and duration; Current marks the one that is live.

StatusMeaning
Waiting for checksHeld until the commit's CI checks pass
QueuedWaiting for the worker
CloningChecking out the exact commit
BuildingBuildKit builds the image
PushingThe image goes to the registry
ReleasingThe pre-deploy command runs
DeployingSwarm replaces the replicas
ReadyEvery new replica is healthy
FailedA step failed; the error shows above the log
CancelledYou cancelled it
SupersededA newer deployment was queued before this one started
SkippedA trigger held it back, for example [skip ci] or failed checks

One deployment runs per service at a time. When several are queued, only the newest runs and the older ones become Superseded, so a burst of pushes builds once.

Follow the live log

The log on the right streams as the deployment runs. While it runs, the footer reads Replayed from the start, following live; once it ends, Complete log.

  • Search output filters the lines.
  • Follow keeps the view at the newest line.
  • The copy button copies the whole log.

Lines starting with ==> are LogiStack's own steps, for example:

==> cloning https://github.com/acme-retail/storefront#main
==> commit 8f3c2a1 Gift card balance on checkout summary
==> building registry.example.com/acme/web:dep_rtstor for linux/amd64 (dockerfile)
==> pushing registry.example.com/acme/web:dep_rtstor
==> deploying registry.example.com/acme/web:dep_rtstor
==> healthy

For the runtime output of the running containers, use the Logs tab. See Logs and terminal.

How a rollout works

LogiStack replaces replicas one at a time:

  1. Start-first for stateless services: the new replica starts, passes its health check, takes traffic, then the old one stops. No request is dropped.
  2. Stop-first for services with a volume or a port published on the node: the old replica stops before the new one starts, because they can't share the data or the port. Expect a short gap.
  3. Swarm watches each new replica for 30 seconds. If one fails, the rollout rolls back automatically and the deployment is Failed; the previous version keeps running.
  4. A replica being replaced gets the Drain timeout (10 seconds by default) after SIGTERM to finish in-flight requests.

Set the health check and drain timeout under Settings › Healthcheck and drain. See Service settings.

Release commands

Release commands run once on the new image, with the service's variables and networks, around each rollout. Set them under Settings › Release commands, or when you create the service.

  • Pre-deploy command: runs before any replica is replaced. If it fails, the deployment fails and the current version keeps running. Use it for database migrations.
  • Post-deploy command: runs once the new replicas are healthy. If it fails, the deployment shows a warning and stays live.
  • Timeout: seconds, 10 to 7200. Default 600.

Write one argument per line. The command runs without a shell:

Pre-deploy command
bun
run
db:migrate

To use a shell, write sh, -c and the script on three lines:

Pre-deploy command with a shell
sh
-c
npx prisma migrate deploy && npx prisma db seed

Review changes before deploying

When you change settings, variables, domains or the image, the service doesn't change until the next deployment. The header then shows Review changes, and Deploy shows the number of pending changes.

Open the diff

Select Review changes. The dialog compares what the next deploy applies with the newest healthy deployment.

Read each change

Each line is Added, Removed or Changed: the image, an environment variable, a domain, CPU or memory, replicas, a mount, a config file, a port, the health check, a network or another Swarm setting. Secret values are never shown. Switch to JSON for the raw diff, and copy it with Copy the JSON diff.

Deploy

Select Deploy changes, or Close to keep editing.

Cancel a deployment

Select the deployment and select Cancel. You can cancel while it is Waiting for checks, Queued, Cloning, Building, Pushing or Releasing. Once it reaches Deploying, Swarm owns the rollout and it can't be cancelled; it either finishes or rolls back on its own.

Roll back

Pick an earlier deployment

On the Deployments tab, select a Ready deployment that isn't Current.

Roll back

Select Roll back to this, then Roll back in the dialog. A new Rollback deployment runs that deployment's image again, with no build. The current variables and settings apply.

A rollback restores the image, not the data. If a pre-deploy migration changed the database schema, roll the schema back yourself first. Rollbacks to images built on the local registry stop working if you delete its images. See Registries.

Restart, stop and start

  • Restart replaces each replica on the current image, one at a time, with the new one started first. No build runs. It needs one healthy deployment first.
  • Stop scales the service to zero replicas and removes its domains from the proxy. Data, volumes and configuration stay.
  • Start brings a stopped service back.

Common problems

  • Failed in Building: read the log above the error. A missing file usually means a wrong Build context or Root directory.
  • Failed in Deploying with a health check error: the app didn't answer on the check's port or path in time. Check the Container port and the health check path.
  • Failed with "the image has no /bin/sh": an HTTP or TCP check can't run in a distroless or scratch image. Use a Command check. See Images without a shell.
  • Skipped: "Commit message contains [skip ci]": expected. Push another commit, or select Deploy.
  • Deployed, but … The new version stays live: the post-deploy command failed. The new version is live; fix the command and redeploy if needed.

On this page