[5.26.0] — 2026-12-06
Every app keeps what it writes. --shared-dirs — which Ben Knowles brought to Node apps in #600 — now works for every type deployed in releases: Laravel, Octane, Symfony, WordPress, Laravel Rust and Laravel Go. A folder the app writes to while it runs — public/uploads, a VichUploader mapping, the folder of an SQLite file — lives in shared/ and is linked into every release, so a deploy no longer starts it empty. A deploy that would lose an SQLite database stops before it builds anything, and says where to keep it.
Octane no longer answers 500 while it restarts. A deploy restarts the Octane server on the release that went live; nginx now sends what arrives in those seconds to the app's PHP-FPM pool, on the same release.
Stop, then start. --switch=recreate for Node SSR, Laravel Rust and Laravel Go: the release that is serving stops before the new one starts, for an app that cannot run twice at once.
cipi app status: the scheduler's last run, the processes beside the app, the size of its databases and of its Valkey, and what is wrong in its .env. cipi app clone takes a custom app — its files and its databases. The deploy history says the title of each commit. cipi gui export | import move the panel to another server with its users, servers and tokens.
Added
--shared-dirsfor every app deployed in releases (cipi app create|edit --shared-dirs=public/uploads,var/data):- Beyond what the type shares —
storage/for Laravel, Laravel Rust and Laravel Go,var/logandvar/sessionsfor Symfony, the uploads folder for WordPress — kept in~/shared/<dir>and linked into every release by Deployer's ownshared_dirs(cipi:shared-dirs, beforedeploy:shared, reading~/.deployer/shared.json, which Cipi writes as the app's user). - The first deploy after a folder is added copies it from the release that is serving into
shared/— whole, or not at all — so what the app wrote there until then is kept. - Refused, with the reason: a path outside the repository,
..,.git,.env,.ssh,vendor,node_modules, the code itself or what each release builds (public,app,src,config,public/build… — a folder inside it is fine), a folder that overlaps what the type shares or another one of the list, more than 10. Not for a custom app: its folder is the app. --shared-dirs=nonegoes back to what the type shares. A folder taken off the list keeps its files inshared/; new releases do not link it. Every change takes effect on the next deploy.- Laravel Rust and Laravel Go take it too, for a disk outside
storage/(they serve thepublicdisk fromstorage/app/publicat/storagethemselves: nopublic/storagelink to make). - Everywhere an app is carried:
cipi app show(Shared dirs),cipi app clone, the preview of a branch (the same folders, empty),cipi sync(their files travel with the app), andcipi.yml—deploy.shared_dirs: [public/uploads]for these types,node.shared_dirsfor a Node app as before.
- Beyond what the type shares —
- The SQLite guard (
cipi:data_guard, afterdeploy:shared): a deploy whose SQLite database is inside the release —DB_CONNECTION=sqlitewithDB_DATABASEempty (database/database.sqlite) or pointing into a release, aDATABASE_URLof Laravel Rust, Laravel Go or Symfony (sqlite:///%kernel.project_dir%/var/data.db) outside what is shared — stops before anything is built or migrated: the next release would have started without it. The message says where to keep it for the type (DB_DATABASE=/home/<app>/shared/storage/…,DATABASE_URL=sqlite://storage/…?mode=rwc,sqlite:storage/…,--shared-dirs=var/data) and, when the release that is serving has the file, to copy it there first. A database file that comes with the repository is the repository's: the deploy goes on and says so. In memory: nothing to keep. --switch=bluegreen|recreate(cipi app create|edit), for an app with a server of its own — Node SSR, Laravel Rust, Laravel Go.recreatestops the release that is serving, and what runs beside it (the queue worker, Reverb, SSR), before the new one starts — for an app that holds what only one process may hold: an SQLite file in exclusive mode, a lock, a connection to a device, a session an outside service allows only once. nginx answers 502 until the new release answers on its health path; if it never does, it is stopped and the previous release is started again.bluegreenstays the default.cipi app showandcipi node statussay it.cipi app status <app> [--json]— what the HTTP check cannot see, measured on request:- The scheduler: every
schedule:runline Cipi writes in a crontab now records when it ended and its exit code (~/logs/.schedule-last); the state isok,late(no run for longer than it should),failing(the last run ended with an error),waiting,off, orn/afor a type that has none. - The processes: each program of the app's Supervisor files — queue workers, Horizon, Reverb, Octane, the blue/green slots, SSR — with its role and state.
- The databases (size and tables) and the Valkey of the app (memory used of its limit, keys; one that does not answer).
- Checks,
crit,warnorinfo:APP_KEYempty,APP_DEBUGon in production,APP_ENVorLOG_LEVEL=debugthat do not fit production,APP_URLon another domain or onhttp://with a certificate, mail written to the log, a driver on Redis with no Valkey, a queue with no worker, Horizon installed and not running the queues or on and not running, a scheduled app with the scheduler off, a program inFATAL, Symfony'sAPP_ENV/APP_DEBUG/APP_SECRET, a Messenger transport with no worker,WP_DEBUGin production — and an SQLite database inside the release, before a deploy stops on it. - From the panel:
www-datamay runcipi app status *.
- The scheduler: every
cipi app clone <app>takes a custom app: a custom app of its own on the clone's domain with the same PHP, document root and PHP entry list, a copy ofhtdocs(read as the source's user, written as the clone's), and for each linked database one of its own — with the data unless--no-db. The clone's database user is given the source's password (its hash, for MariaDB and PostgreSQL), and the lines of the copied files that name the database and its user (wp-config.php, an.env, a DSN) are pointed at the clone's: the copy never writes into the source's data. What still names the source's database is listed. A WordPress copy answers on the clone's domain once wp-cli is on the server (wp search-replace); otherwise the command to run is shown. A Laravel app is cloned as before, with its shared directories; Node, Laravel Rust, Laravel Go, WordPress and Symfony apps are copied as the preview of a branch (cipi preview create <app> <branch> --db=copy), and the command says so.- The commit of each deploy, and its title:
cipi deploy --history <app>has a COMMIT column — the commit of each release that went live, from the deploy ledger, and its title, read from the app's clone of the repository — and--json(andcipi deploy --last --json) carrycommitandsubject. cipi gui export [--output=FILE]andcipi gui import FILE [--yes]— the panel moves to another server with everything it knows: its users with their 2FA and passkeys, the servers it manages and their API tokens, teams, connectors, notifications. The archive holds the panel's database as SQL, theAPP_KEYthat decrypts what is in it and the single sign-on settings, encrypted with a passphrase (--passphrase-stdin, or asked). The import goes on a server where the panel is installed already (cipi gui <domain>): its own database and key are kept aside, replaced and migrated. The servers it lists keep their addresses: an API that admits clients by address has to admit the new one.
Fixed
- A deploy of an app with no HTTP healthcheck ended with
[ERROR] Stopped unexpectedly at health.sh:299 (exit 2)in its log after a successful deploy: the post-deploy step returned its status — 2, "no healthcheck set" — through the error trap instead of exiting with it. - Octane answered 500 (and 502) during a zero-downtime deploy. A FrankenPHP server serves the release it was started from, so a deploy restarts it on the new one; in the seconds that took, nginx had nothing to send requests to, and the
octane:reloadthat followed reloaded a server that was still starting. The vhost of an Octane app now proxies to an upstream with Octane first and the app's PHP-FPM pool as its backup, on the same release: a request that never reached Octane is answered by PHP-FPM, one that did is never sent twice. The reload after the restart is gone from the recipe.
Changed
- The migration writes the vhost of every Octane app again (each one is put back if
nginx -trefuses them), addscipi:shared-dirsand the SQLite guard to the recipes of every app deployed in releases — nothing is shared that was not until a list is set — adds the heartbeat to everyschedule:runline, and addsapp statusto the panel's sudoers. Nothing is restarted or deployed.