Appearance
Laravel Forge and Ploi
Laravel Forge and Ploi set a server up — PHP, Nginx, MySQL, the queue worker, the scheduler, a certificate — at DigitalOcean, Hetzner, Vultr, Akamai, AWS or a server of your own, and deploy on every push. What they cannot know is kitloom's: the token for the packages, the themes' build, the worker's command, the WordPress prefix. The deploy kit writes it. What the server needs and where else to host: Deployment.
With the deploy kit
bash
php artisan kitloom:deploy-kit forge --domain=example.com| File | What it is |
|---|---|
deploy/ | The deploy script to paste into Forge (Site → Deployments → Deploy script): composer install, the themes built when a theme needs it, migrate, optimize, PHP-FPM reloaded, the worker restarted the way it runs (queue:, or horizon: with Horizon), the SSR daemon stopped so that Forge starts it again on the new bundles |
deploy/ | The same for Ploi, with its placeholders |
deploy/ | The lines to add to the site's environment under what Forge filled in: the theme, DB_ for a WordPress database, the queue, the mailer to set |
deploy/ | The checklist of their screens, for this site |
In Forge
- Servers → Create server: Ubuntu 24.04, PHP 8.4, MySQL 8 (and Redis with Horizon), 2 GB of memory (4 GB for a shop or Horizon).
- The kitloom token, saved once as the server's user, which is who deploys (
ssh forge@<ip>):composer config --, and the same forglobal http- basic. packages. kitloom. dev <your- name> <your- token> nova.on a Nova site.laravel. com - Sites → New site: the domain, project type Laravel, web directory
/; then the Git repository, branchpublic main, Install Composer dependencies ticked. - Environment: Forge filled in
APP_,KEY APP_andURL DB_; add the lines of* deploy/under them, and a real mailer.forge. env - Deployments → Deploy script: replace it with
deploy/. Quick deploy on.forge. sh - Server → PHP: max file upload size 64 MB, the media library's limit.
- Server → Scheduler: the Laravel scheduler preset —
php artisan schedule:every minute asrun forgein the site's folder. - Server → Daemons:
php artisan queue:(orwork -- sleep=3 -- tries=3 -- max- time=3600 php artisan horizon) in the site's folder asforge. The deploy script restarts it after every deploy. With a Vue or React theme, a second daemon there:php artisan inertia:, the SSR server that renders the pages for crawlers and first visits; the deploy script stops it after the build and Forge starts it again.start- ssr - Site → SSL: Let's Encrypt, once the DNS record points at the server.
- Deploy now. Then, once, as
forgein the site's folder:php artisan storage:, and the first administrator withlink php artisan kitloom:— or WordPress's database loaded instead, withuser -- login=admin -- email=you@example. com DB_in the environment.PREFIX
Site Health in the admin then says whether the scheduler and the worker come by.
With AI agents on the site, the deploy script makes Passport's key pair, which signs the agents' sign-ins, on the first deploy, in the site's storage/ (oauth-, oauth-), which every deploy after keeps: Forge and Ploi update the site in place, so a deploy signs no agent out. They are secrets: in the server's backups, never in the repository. To change them (a key has leaked), as the server's user in the site's folder: php artisan passport:; every agent then signs in again.
In Ploi
The same, under Ploi's names: a server (Servers → Create, PHP 8.4, MySQL, Redis with Horizon), the token as ploi on it, a site from the repository, Environment with deploy/ added, Deploy script replaced with deploy/, Cronjobs with the Laravel scheduler preset, Daemons with the worker's command, SSL with Let's Encrypt.
Every time after
A push to main deploys. A new version of kitloom comes in through composer update on your machine, tested, with composer. committed; the server installs exactly that. The script takes the site through git pull and composer install in place — a few seconds in which a visitor may hit a half-updated site. For releases switched in one move, run Forge's Envoyer, or the kit's server target on the same server: its Deployer recipe deploys into a folder per release.