<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Andrea Pollastri</title>
    <description>The latest articles on DEV Community by Andrea Pollastri (@andreapollastri).</description>
    <link>https://dev.to/andreapollastri</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4259544%2F30c237a5-f60a-44b0-aa54-8cda040c7ec8.jpg</url>
      <title>DEV Community: Andrea Pollastri</title>
      <link>https://dev.to/andreapollastri</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/andreapollastri"/>
    <language>en</language>
    <item>
      <title>Deploy Laravel to your own VPS with zero downtime, for free (with Cipi)</title>
      <dc:creator>Andrea Pollastri</dc:creator>
      <pubDate>Mon, 23 Nov 2026 02:10:53 +0000</pubDate>
      <link>https://dev.to/andreapollastri/deploy-laravel-to-your-own-vps-with-zero-downtime-for-free-with-cipi-5blj</link>
      <guid>https://dev.to/andreapollastri/deploy-laravel-to-your-own-vps-with-zero-downtime-for-free-with-cipi-5blj</guid>
      <description>&lt;p&gt;Deploying Laravel usually goes one of two ways. You pay every month for a hosted panel that manages your servers, or you spend a weekend with Nginx configs, PHP-FPM pools, Supervisor files, certbot and a deploy script that one day takes the site down mid-release.&lt;/p&gt;

&lt;p&gt;There's a third way. &lt;strong&gt;&lt;a href="https://cipi.sh" rel="noopener noreferrer"&gt;Cipi&lt;/a&gt;&lt;/strong&gt; is a free, open-source (MIT) tool that you install &lt;strong&gt;on the server itself&lt;/strong&gt;. One command turns a fresh Ubuntu VPS into a platform for many Laravel apps: zero-downtime deploys from Git, queues, the scheduler, HTTPS, backups and security patches. There's no subscription and no external control plane. If you want a dashboard, there's an optional self-hosted one.&lt;/p&gt;

&lt;p&gt;In this post we'll go from an empty VPS to a live Laravel app on HTTPS that deploys on every &lt;code&gt;git push&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F7we25ayqk2wjm60lix1s.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F7we25ayqk2wjm60lix1s.png" alt="A Laravel shop going live on HTTPS, then updating to release 2 with zero dropped requests" width="800" height="843"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What you need
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;A VPS with &lt;strong&gt;Ubuntu 24.04 or 26.04 LTS&lt;/strong&gt; and a public IPv4: Hetzner, DigitalOcean, AWS, Vultr, OVHcloud and others all work. 2 GB of RAM is comfortable for a couple of apps.&lt;/li&gt;
&lt;li&gt;A domain whose DNS you can edit.&lt;/li&gt;
&lt;li&gt;Your Laravel app in a Git repository (GitHub, GitLab, Bitbucket, Gitea, Azure DevOps…).&lt;/li&gt;
&lt;li&gt;An SSH key on your laptop (&lt;code&gt;ssh-keygen -t ed25519&lt;/code&gt; if you don't have one).
Point your domain's &lt;code&gt;A&lt;/code&gt; record at the server's IP now, so DNS propagates while you install.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  1. Install Cipi (one command)
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;ssh root@203.0.113.10
wget -O - https://cipi.sh/setup.sh &lt;span class="o"&gt;|&lt;/span&gt; bash
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The installer asks for your &lt;strong&gt;public&lt;/strong&gt; SSH key, shows what it's about to do, and then sets up:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Nginx, PHP (several versions side by side), MariaDB, Valkey (the open-source Redis), Supervisor, Node and Certbot&lt;/li&gt;
&lt;li&gt;a firewall with only ports 22, 80 and 443 open, Fail2ban, key-only SSH with root login disabled&lt;/li&gt;
&lt;li&gt;automatic security updates, plus nightly PHP patching
It takes about ten minutes. Save the credentials it prints at the end: they're shown once.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fdi8xuh8d5ztqu0vy1k8y.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fdi8xuh8d5ztqu0vy1k8y.png" alt="The Cipi installer from start to finish" width="800" height="490"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;From now on you log in as the &lt;code&gt;cipi&lt;/code&gt; admin user:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;ssh cipi@203.0.113.10
sudo cipi status
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  2. Create the app
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;sudo cipi app create --user=shop --domain=shop.example.com \
    --repository=git@github.com:acme/shop.git --branch=main --php=8.5
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That one command creates an &lt;strong&gt;isolated&lt;/strong&gt; app:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;You get&lt;/th&gt;
&lt;th&gt;Where&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;A Linux user &lt;code&gt;shop&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;apps can't read each other's files&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;A database and database user &lt;code&gt;shop&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;MariaDB (or PostgreSQL with &lt;code&gt;--engine=pgsql&lt;/code&gt;)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;A PHP-FPM pool on the PHP version you chose&lt;/td&gt;
&lt;td&gt;each app picks its own&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;An Nginx vhost for the domain&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;A queue worker under Supervisor&lt;/td&gt;
&lt;td&gt;ready for your jobs&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;The Laravel scheduler, every minute&lt;/td&gt;
&lt;td&gt;already in the app user's crontab&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;A &lt;code&gt;.env&lt;/code&gt; with every credential filled in&lt;/td&gt;
&lt;td&gt;&lt;code&gt;/home/shop/shared/.env&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;A read-only deploy key and a signed webhook&lt;/td&gt;
&lt;td&gt;for Git&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Running &lt;code&gt;sudo cipi app create&lt;/code&gt; with no flags starts a wizard instead.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fs18yr6szc4luzdba9i6w.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fs18yr6szc4luzdba9i6w.png" alt="The cipi app create wizard: app type, runtime, database, repository, then everything created in one go" width="800" height="437"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Connect the repository
&lt;/h2&gt;

&lt;p&gt;The summary shows a &lt;strong&gt;deploy key&lt;/strong&gt;. Add it to your repository as a read-only deploy key (GitHub: &lt;em&gt;Settings → Deploy keys&lt;/em&gt;). If you save a Git provider token in Cipi, it adds the key and the push webhook for you. Check that the server can read the repo:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;sudo cipi git check shop
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  4. Deploy, with zero downtime
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;sudo cipi deploy shop
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Here's what a deploy does, and why visitors never see a broken site:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;The repository is cloned into a &lt;strong&gt;new&lt;/strong&gt; folder, &lt;code&gt;releases/&amp;lt;timestamp&amp;gt;&lt;/code&gt;. The live site keeps running.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;composer install --no-dev&lt;/code&gt; runs with the app's own PHP version.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;.env&lt;/code&gt; and &lt;code&gt;storage/&lt;/code&gt; are linked from &lt;code&gt;shared/&lt;/code&gt;, so they survive every deploy and rollback.&lt;/li&gt;
&lt;li&gt;Migrations and &lt;code&gt;artisan optimize&lt;/code&gt; run inside the new release.&lt;/li&gt;
&lt;li&gt;The &lt;code&gt;current&lt;/code&gt; symlink switches to the new release in &lt;strong&gt;one atomic step&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Queue workers restart on the new code.
If any step fails, nothing switches: the old release keeps serving. Something wrong after a deploy? Go back instantly:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;sudo cipi deploy shop --rollback
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Flysk0e5vp69jw4yvp52z.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Flysk0e5vp69jw4yvp52z.png" alt="Deploy, list releases, roll back" width="799" height="461"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Front-end assets? Add a build command and Vite runs before the switch:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;sudo cipi app deploy-config shop --node-build=&lt;span class="s1"&gt;'npm ci &amp;amp;&amp;amp; npm run build'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  5. HTTPS
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;sudo cipi ssl install shop
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A free Let's Encrypt certificate covers the domain and its aliases, renews by itself, and &lt;code&gt;APP_URL&lt;/code&gt; switches to &lt;code&gt;https://&lt;/code&gt;. Behind Cloudflare's proxy, or for wildcard domains like &lt;code&gt;*.yourapp.com&lt;/code&gt;, issue it over DNS instead with &lt;code&gt;sudo cipi ssl install shop --dns=cloudflare&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  6. Deploy on every push
&lt;/h2&gt;

&lt;p&gt;The webhook was created with the app, so pushing to &lt;code&gt;main&lt;/code&gt; now deploys. If you'd rather deploy only when tests pass, turn the webhook off and deploy from CI:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="c1"&gt;# .github/workflows/deploy.yml (excerpt)
&lt;/span&gt;&lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;uses&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;appleboy/ssh-action@v1&lt;/span&gt;
  &lt;span class="na"&gt;with&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;host&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;${{ secrets.SERVER_HOST }}&lt;/span&gt;
    &lt;span class="na"&gt;username&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;cipi&lt;/span&gt;
    &lt;span class="na"&gt;key&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;${{ secrets.CI_SSH_KEY }}&lt;/span&gt;
    &lt;span class="na"&gt;script&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;sudo cipi deploy shop || (sudo cipi deploy shop --rollback &amp;amp;&amp;amp; exit 1)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Add a health check, and a broken release rolls itself back:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;sudo cipi health &lt;span class="nb"&gt;set&lt;/span&gt; shop --url=https://shop.example.com/up --expect=200
sudo cipi deploy shop --rollback-on-unhealthy
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  7. Queues, Horizon, Octane, Reverb
&lt;/h2&gt;

&lt;p&gt;Production Laravel needs more than PHP-FPM. With Cipi each of these is one command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;sudo cipi worker add shop --queue=emails --processes=3   &lt;span class="c"&gt;# another queue&lt;/span&gt;
sudo cipi worker horizon &lt;span class="nb"&gt;enable&lt;/span&gt; shop                     &lt;span class="c"&gt;# or hand everything to Horizon&lt;/span&gt;
sudo cipi app convert shop --to=octane                   &lt;span class="c"&gt;# Octane on FrankenPHP&lt;/span&gt;
sudo cipi app reverb &lt;span class="nb"&gt;enable&lt;/span&gt; shop                         &lt;span class="c"&gt;# WebSockets on the same domain&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  8. Keep server settings in Git with &lt;code&gt;cipi.yml&lt;/code&gt;
&lt;/h2&gt;

&lt;p&gt;This is the part I like most. Instead of remembering which commands you ran six months ago, you describe the app in a file next to &lt;code&gt;composer.json&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;version&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;

&lt;span class="na"&gt;app&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;php&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"8.5"&lt;/span&gt;
  &lt;span class="na"&gt;aliases&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"www.shop.example.com"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;

&lt;span class="na"&gt;workers&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;queues&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="s"&gt;queue:&lt;/span&gt; &lt;span class="s"&gt;default&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;processes:&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="s"&gt;queue:&lt;/span&gt; &lt;span class="s"&gt;emails&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;processes:&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;tries:&lt;/span&gt; &lt;span class="mi"&gt;5&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="na"&gt;schedule&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;

&lt;span class="na"&gt;health&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;url&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"https://shop.example.com/up"&lt;/span&gt;
  &lt;span class="na"&gt;rollback_on_unhealthy&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;

&lt;span class="na"&gt;deploy&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;predeploy_snapshot&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;
  &lt;span class="na"&gt;node_build&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"npm ci &amp;amp;&amp;amp; npm run build"&lt;/span&gt;

&lt;span class="na"&gt;backup&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;profiles&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="s"&gt;name:&lt;/span&gt; &lt;span class="s"&gt;shop-nightly&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;scope:&lt;/span&gt; &lt;span class="s"&gt;all&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;cron:&lt;/span&gt; &lt;span class="s2"&gt;"0 2 * * *"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;keep_days:&lt;/span&gt; &lt;span class="mi"&gt;14&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;destinations:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s"&gt;s3&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;encrypt:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Changes go through a pull request like any other code. On the server, &lt;code&gt;cipi yml plan shop&lt;/code&gt; shows exactly what would change, and &lt;code&gt;cipi yml apply shop&lt;/code&gt; applies it &lt;strong&gt;all or nothing&lt;/strong&gt;. Already have an app? &lt;code&gt;sudo cipi yml generate shop &amp;gt; cipi.yml&lt;/code&gt; writes the file from its current setup, so the first plan changes nothing.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fof7kke9cp5gy0axuihv7.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fof7kke9cp5gy0axuihv7.png" alt="cipi yml plan shows every change before anything is applied" width="799" height="460"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;There are &lt;a href="https://cipi.sh/guides/cipi-yml-recipes" rel="noopener noreferrer"&gt;18 ready-made recipes&lt;/a&gt;: a SaaS with Horizon and Reverb, an Octane API, an online shop, a multi-tenant app, staging, Next.js and more.&lt;/p&gt;

&lt;h2&gt;
  
  
  9. Backups you can actually restore
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;sudo cipi backup configure            &lt;span class="c"&gt;# an S3-compatible bucket&lt;/span&gt;
sudo cipi backup profile add shop-db --scope=db --databases=shop \
    --every=30m --keep=48 --dest=s3 --encrypt
sudo cipi backup verify
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Archives are encrypted on the server before they leave it, and Cipi warns you when a backup is overdue.&lt;/p&gt;

&lt;h2&gt;
  
  
  What else is in the box
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Security:&lt;/strong&gt; one isolated user per app, nightly PHP patches with alerts while a vulnerable build is installed, optional CrowdSec, malware integrity scans, secrets encrypted at rest, and Cloudflare Zero Trust that can close every port.&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Optional web panel:&lt;/strong&gt; self-hosted, for one or many servers, with roles, 2FA and SSO. See &lt;a href="https://cipi.sh/web-panel" rel="noopener noreferrer"&gt;cipi.sh/web-panel&lt;/a&gt;.&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fl5dqkt4egtkoozd4qe61.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fl5dqkt4egtkoozd4qe61.png" alt="The optional Cipi web panel: one app's deploys, with a hash-chained audit of who deployed what" width="800" height="730"&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;REST API, PHP SDK and &lt;code&gt;cipi-cli&lt;/code&gt;&lt;/strong&gt; to drive servers from your laptop or CI.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;MCP for AI assistants:&lt;/strong&gt; Claude, Cursor or VS Code can read logs, check migrations and deploy, behind SQL and Artisan guards with secret redaction. See &lt;a href="https://cipi.sh/mcp" rel="noopener noreferrer"&gt;cipi.sh/mcp&lt;/a&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Anonymized database dumps:&lt;/strong&gt; production data for developers, without the personal data.&lt;/p&gt;
&lt;h2&gt;
  
  
  How it compares
&lt;/h2&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;Cipi&lt;/th&gt;
&lt;th&gt;Hosted server panels&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Price&lt;/td&gt;
&lt;td&gt;Free (MIT)&lt;/td&gt;
&lt;td&gt;A monthly plan, on top of the server&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Where it runs&lt;/td&gt;
&lt;td&gt;On your server&lt;/td&gt;
&lt;td&gt;A third-party SaaS&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Server settings in Git&lt;/td&gt;
&lt;td&gt;&lt;code&gt;cipi.yml&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;In a dashboard&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Creates servers on cloud accounts&lt;/td&gt;
&lt;td&gt;No: you create the VPS&lt;/td&gt;
&lt;td&gt;Usually yes&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Hosted panels are great if you want servers created for you from a dashboard and a support contract. If you'd rather own the whole stack and stop paying for the control plane, Cipi does the job. There are &lt;a href="https://cipi.sh/alternatives" rel="noopener noreferrer"&gt;22 honest comparisons&lt;/a&gt; (Forge, Ploi, Laravel Cloud, Coolify, cPanel…), each with a step-by-step migration.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;wget -O - https://cipi.sh/setup.sh &lt;span class="o"&gt;|&lt;/span&gt; bash
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;🌐 Website and docs: &lt;strong&gt;&lt;a href="https://cipi.sh" rel="noopener noreferrer"&gt;cipi.sh&lt;/a&gt;&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;📚 50+ step-by-step guides: &lt;a href="https://cipi.sh/guides" rel="noopener noreferrer"&gt;cipi.sh/guides&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;⭐ GitHub: &lt;a href="https://github.com/cipi-sh/cipi" rel="noopener noreferrer"&gt;github.com/cipi-sh/cipi&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;📣 Releases and security notes: &lt;a href="https://t.me/cipicloud" rel="noopener noreferrer"&gt;t.me/cipicloud&lt;/a&gt;
If you try it, I'd love to hear how it went, and what's missing, in the comments. 🚀&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>devops</category>
      <category>laravel</category>
      <category>php</category>
      <category>opensource</category>
    </item>
  </channel>
</rss>
