Category: Deploys

How a release goes live, and back.

  • Building assets at deploy time

    Building assets at deploy time

    With --node-build="npm run build" Cipi runs the command in each new release before current moves. Here the build only writes assets/build-info.json in the theme — enough to see on the Deploy status page that it ran, and when.

    A build that fails stops the deploy: the site stays on the release it had.

  • Rolling back

    Rolling back

    Deployer keeps the last releases on disk. When one goes live and turns out to be wrong, sudo cipi deploy <app> --rollback moves current back to the previous release.

    Try it: deploy twice, note the release number in the badge, roll back, reload. The uploads and the database are untouched — they were never in the release.

  • Hello from a release

    Hello from a release

    This WordPress was not uploaded over SFTP: it is a Git repository. Every deploy checks the commit out into releases/<n>, links what has to survive from shared/, and only then moves current to it.

    Look at the bottom-right corner of the page: the badge says which release rendered it, and which commit. Push a change, deploy, reload — the number goes up and the page never answers with half of each.

    The Deploy status page checks the rest: Cipi’s wp-config.php, the uploads, the database, the cron.

Cipi demo · release 1 · ece6b90 · PHP 8.5.13 · rendered 10:42:56 UTC