Getting started
Deployment
From docs/deployment.md at commit 548821a.
Spinto 0.1.0. These docs follow the main branch. Spinto isn't on crates.io yet, so you install it from a clone.
Introduction
Spinto runs inside your application, so it deploys with it: there’s no separate process, service or database. It reads the tables your application already writes and serves its pages from your application’s own HTTP server.
What changes between deployments is who runs your queue workers and who keeps their records. On your own servers, you run the workers and Spinto is where you look. On Laravel Cloud, Cloud runs and scales the workers and keeps some of their records, and Spinto links to Cloud for those instead of repeating them.
Self-hosted workers
Spinto doesn’t start, supervise or scale queue workers. Run them under a process supervisor, as the framework’s worker guide describes, with --concurrency for the number of jobs one process works at once:
# /etc/systemd/system/app-worker.service
[Unit]
Description=Queue worker
After=network.target
[Service]
WorkingDirectory=/srv/app
ExecStart=/srv/app/app queue:work --concurrency=4
Restart=always
KillSignal=SIGTERM
TimeoutStopSec=150
[Install]
WantedBy=multi-user.target
To spread work over more processes or servers, start more units; each job is claimed by only one worker. To recycle a long-running worker, add --max-jobs or --max-time, and the supervisor starts a fresh one when it exits.
When a worker is killed mid-job, another worker reclaims the job about a minute later. The runtime doesn’t count the interrupted try, so a step can run more often than its tries say. Spinto’s run page explains this beside every step’s tries.
Laravel Cloud
Spinto needs nothing special on Laravel Cloud. Deploy your application as usual; Spinto’s pages are served at SPINTO_PATH (/spinto by default) on your environment’s domain.
What Cloud shows and what Spinto shows
Cloud manages your queues on the cloud connection and keeps their records. Spinto shows what Cloud doesn’t, and links to Cloud for the rest:
| Record | Where it lives | What Spinto does |
|---|---|---|
| Workflow runs, steps, sleeps and waits | Your application’s workflow store | Shows them |
| Failed workflow runs | Your application’s workflow store | Shows them. Cloud never lists them: a run that fails settles its own queue job, so Cloud records that job as processed |
Failed jobs on the cloud connection |
Laravel Cloud, for 91 days | Links to Cloud’s queue dashboard |
| Failed jobs on other connections | Your failed_jobs table |
Shows them |
| Batches | Your job_batches and job_batch_jobs tables |
Shows them |
| Queue depth | Both | Shows the driver’s count, approximate on the cloud connection, and links to Cloud’s live chart |
| Worker scaling | Laravel Cloud | Links to Cloud |
| Logs and infrastructure metrics | Laravel Cloud | Links to Cloud. Search Cloud’s logs for a run ID or job ID to find its lines |
Retrying or deleting a failed job on the cloud connection happens in Cloud’s dashboard, its API, or queue:retry with the job’s Cloud URL. Spinto shows the command; the first release doesn’t run it.
Linking to your environment
Cloud doesn’t tell the application which environment it runs in, so Spinto links to Cloud’s front page by default. To link straight to your environment, open the environment in the Cloud dashboard and set SPINTO_CLOUD_URL to the address your browser shows:
SPINTO_CLOUD_URL=https://cloud.laravel.com/…
The URL must use https, or the application stops at boot with a message saying so.
Two MCP servers
Laravel Cloud runs an MCP server for your infrastructure: deployments, environments, queues, logs and metrics. Spinto’s MCP server answers questions about what your application did: workflow runs, their steps and waits, failed jobs and batches.
Give an agent both, and each answers what it owns. The two don’t overlap: Spinto’s tools never deploy, scale or read logs, and Cloud’s tools don’t read your workflow store. Every Spinto tool is read-only.