[5.24.0] — 2026-12-02
A domain for the server itself. A wildcard record that points at the server — *.example.com, or a level down, *.cipi.example.com — with no app on it: cipi server domain set '*.example.com'. Cipi makes names under it for what belongs to the server and not to one app's domain.
cipi/agent is optional. With a server domain the Git webhook of every app is https://webhooks.<domain>/<app>, answered by Cipi itself: a Laravel app deploys on push without the agent in its project. Where the agent is, its own webhook comes first.
Previews of a branch. cipi preview create <app> <branch> (or cipi app feature-branch <app> <branch>): a copy of the app on another branch, on <app>-<branch>-<random>.<domain>, with a database and a certificate of its own — removed when the branch is deleted from the repository.
Each type of app runs and logs what is its own. cipi app run takes WP-CLI and Symfony's console and suggests commands per type; cipi app logs follows Laravel's log for a Laravel app, Symfony's for a Symfony one, WordPress's, a Node process's.
Added
cipi server domain(lib/server-domain.sh) —set <*.example.com> [--no-ssl] [--skip-dns-check],remove [--yes],status [--json],sync.- The record is checked before anything is written:
webhooks.<domain>has to reach this server, and a name nobody made has to resolve too — a record for one name is not a wildcard, and previews need any name. - Saved in
server.jsonas its base (server_domain), next to what is there. The installer asks for it (optional), after the Git token;cipi apiwithout a domain suggestsapi.<domain>— asked at a terminal, taken where there is nobody to ask. removeis refused while previews live under the domain.
- The record is checked before anything is written:
- The webhook on the server's domain. One vhost (
cipi-webhooks), one certificate, one location per app in/etc/nginx/cipi-webhooks/<app>.conf:POST /<app>goes to Cipi's receiver in that app's own PHP-FPM pool. It runs as the app user, verifies the provider's signature and drops~/.deploy-trigger, as on the app's domain — nothing new can be done through it.- A Laravel app's pool may read the receiver (
open_basedir; pools already written get the folder when the domain is set). An Octane app has no pool of its own: it gets one for the receiver alone — on demand, two children, noexec. - Where the agent is, the agent comes first (
app_webhook_url, lib/common.sh — the one place that decides): a Laravel app whose live release hasvendor/cipi/agentkeepshttps://<its domain>/cipi/webhook. Otherwise the server's domain when there is one, otherwise the app's own, as before. - The provider's webhook follows (
webhook_reconcile): when the domain is set or removed, atcipi git refresh, and after acipi deploythat brought the agent in or took it out. A webhook Cipi registered is moved; one made by hand is named with its new URL. What was registered is recorded (webhook_url).
- A Laravel app's pool may read the receiver (
cipi app webhook show <app> [--json]— where a push goes, who answers it, the secret, whether it deploys, what the provider has, and what is still missing (the agent, a certificate).cipi deploy <app> --webhooksays the same.cipi app webhook auto <app> on|off— a push deploys by itself (the default), or is ignored. Cipi's receiver answers202without queueing; a push that reaches cipi/agent is held by the deploy wrapper, which reads the same switch (autoin~/.cipi/webhook.json). What is not a push —cipi deploy, the panel, the agent's MCP deploy tool — still deploys.cipi app webhook rotate <app>— a new secret for every type of app, with or without a provider token: written where each receiver reads it, registered on the provider when Cipi can, and otherwise said with the URL it belongs to. (recreate --rotate-secretneeds a token, as before.)- A public repository that is not yours:
cipi app create … --public,cipi app edit <app> [--repository=] --public(--no-publicto take the mark off). Read overhttps, checked before anything is created (it has to be readable by anybody: asked asnobody, with no key, no saved credentials and no prompt). No deploy key and no webhook are asked of the provider — nobody but the owner can add a webhook — and the summary,cipi app showandcipi app webhook showsay that deploys are by hand.- Found out without the flag too: a repository the saved token could put no key on, and that anybody can read, is read over
httpsfrom then on — its first deploy failed at the key — and marked.
- Found out without the flag too: a repository the saved token could put no key on, and that anybody can read, is read over
cipi preview(lib/preview.sh) —create <app> <branch> [--db=empty|copy|none] [--no-deploy] [--no-ssl] [--keep],list [app] [--json],keep <preview> on|off,delete <preview>(or<app> <branch>)[--yes],sweep.cipi app feature-branch <app> <branch>is the same command (--deleteremoves).- A preview is an app of its own, made like the one it comes from — type, PHP, repository, build, engine — for Laravel (FPM and Octane), WordPress, Symfony, Node and Laravel Rust apps. Its host is
<app>-<branch>-<random>.<domain>; its name — the Linux user, and the database — is the same three parts without what neither can have in a name (shop-new-cart-7asfy.example.com→shopnewcart7asfy). - The
.envis the app's, without what is the app's own: keys and salts, database, URLs, Valkey, Reverb, search.--db=copyfills the database with the app's. - cipi.yml: a preview's environment is
preview, so acipi-preview.ymlin the repository is read beforecipi.yml; it is applied after each deploy when the app has that on. - It gets its certificate and its first deploy at once; a push to the branch deploys it (its own webhook, on the server's domain).
- It goes when the branch goes. The preview's receiver notes the deletion;
cipi preview sweep— every five minutes,/etc/cron.d/cipi-preview, written when the domain is set — asks the repository itself and removes the preview only when the repository answers and has no such branch. A preview without a webhook is asked about every half hour. The database made with it is dropped with it (an app keeps its linked databases; a preview takes its own).
- A preview is an app of its own, made like the one it comes from — type, PHP, repository, build, engine — for Laravel (FPM and Octane), WordPress, Symfony, Node and Laravel Rust apps. Its host is
cipi app run:wp(WP-CLI,cipi package install wp-cli; noshell,edit,--prompt,db cli) and Symfony's console asphp bin/console ….cipi app run --commands <app> [--json]lists what is worth running in that app — WP-CLI for WordPress, the console for Symfony, npm for Node, Composer and npm for Laravel. Each suggestion is written for where it runs — the live release for everything deployed in releases (an archive: no.git, and nothing of the home above it),htdocsfor a custom app.cipi app logs <app> --type=app— the application's own log, whatever the app is: Laravel'sstorage/logs, Symfony'svar/log, WordPress'sdebug.log(of the live release; Bedrock'sweb/app) and~/logs/wordpress*.log, a Node app's process, a Laravel Rust app's process andstorage/logs. Each is also a type by its name (laravel,symfony,wordpress,node,rust);--types [--json]lists the ones an app has.allreads the app's own log with the server's.- A new WordPress app can name the file of its debug log (
WP_DEBUG_LOG=/home/<app>/logs/wordpress.log), so it outlives a deploy.
- A new WordPress app can name the file of its debug log (
- The panel (
www-datasudoers):server domain status|set|remove|sync,app webhook show|auto|rotate,preview list|create|keep|delete.apps-public.jsonsayspreview_of,git_publicandwebhook_auto.
Fixed
cipi app run <app> …on a WordPress or Symfony app ran in~, wherecomposer installandphp bin/consolefound nothing: it runs in the live release, as for a Laravel app.phpincipi app runwas the server's PHP: it is the app's, as in the app's own shell —php bin/consoleof an app on 8.4 no longer runs on 8.6.cipi git refreshandcipi git checkleft out the webhook of a WordPress or Symfony app (they asked whether the app was Laravel or Node, not whether it had a webhook), andcipi git refresh --rotate-secretwrote a Node app's new secret to an.envits receiver does not read.- A push that deleted the app's branch queued a deploy of a commit that was not there (
fatal: not a valid object name): it is acknowledged and ignored. cipi app logs <app> --type=laravelis still the app's own log on an app that is not Laravel — it was the name that log had before each kind got one, and it is what a panel or a script that was not updated asks for: a Symfony app answers withvar/log, as it did; a WordPress or a Node app with its own log, where it got the whole of~/logs. Only the new names are strict:--type=symfonyon a WordPress site is refused, with the types the app has.
Notes
- Nothing changes on a server without a domain of its own: webhooks are where they were, a Laravel app still needs cipi/agent for them, and
cipi previewsays what it needs. No migration. - Existing webhooks keep working when the domain is set: the location on the app's own domain stays (Node, WordPress, Symfony), and a webhook Cipi registered is moved to the new URL then and there. One made by hand keeps its old URL until it is changed —
cipi app webhook show <app>names both. - A preview has a deploy key of its own, registered by the saved provider token like any app's. It does not share the app's: that key also opens the app's own user to Deployer, and a branch under review is not the place for it. Without a token the key is added by hand before the first deploy (the summary says so), or the repository is public.
- Behind Cloudflare's tunnel or a mesh lock (
cipi zt) ports 80 and 443 are closed to the world:webhooks.<domain>and the previews have to be published the way the apps are. Not done by this release. - cipi/agent still gives what it gave — health, MCP, the anonymizer — and its webhook. It reads the
autoswitch itself from its next version; on the ones before, the deploy wrapper holds the push. - Not run on a real server.
tests/verify-5.24.0.sh(186 checks) runs the receiver for real underphp -S(auto off, a deleted branch for GitHub, GitLab, Bitbucket and Azure DevOps, a preview), the deploy wrapper over trigger files, the sweep and the public check against repositories made with this machine's git, and the endpoint (vhost, locations, pools) in a folder of its own.cipi server domain setend to end — certbot, nginx, a real DNS — andcipi preview createpastcipi app createare not: their order is read from the source and their steps run one by one.tests/verify-5.23.0.shfollows the Laravel pool to its newopen_basedir.