Category: Server notes

What the server keeps between releases.

  • Plugins come from Git

    Plugins come from Git

    A plugin installed from wp-admin would be written into the current release, and the next deploy would replace that release without it. So Cipi turns file changes off in the .env, and plugins, themes and WordPress itself come from the repository.

    This repository commits one: Cipi Cache, in wp-content/plugins/cipi-cache. Turn the page cache on with sudo cipi cache <app> on, activate the plugin, and an edit purges the pages it touches.

  • Cron without visitors

    Cron without visitors

    Cipi sets DISABLE_WP_CRON and adds wp-cron.php of the live release to the app’s crontab, every minute.

    This demo schedules an event every minute that writes the time it ran: the Deploy status page shows how long ago. Leave the site alone for a few minutes and check again.

  • What lives in shared/

    What lives in shared/

    A release is replaced whole at the next deploy. What must outlive it lives once, in shared/, and is linked into each release:

    wp-content/uploads — the images of these posts were uploaded once, by the first release that ran. If they still show after a few deploys, the link works.

    .env — the database, the salts, WP_HOME and WP_SITEURL. Change them with sudo cipi app env <app>.

    wp-config.php — written by Cipi, reads the .env. A wp-config.php committed in the repository is replaced by it at every deploy.

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