What you get, shown as what you type.
A Laravel app needs more than somewhere to run: a database, a queue, somewhere to put uploads, a domain with a certificate on it, and a place for secrets. Each of those is a line in brewless.yml, and a deploy makes it in your own accounts.
One file, in your repository.
brewless.yml says how each environment should be. It is read on every deploy, which plans what has to change and shows you that plan before anything happens.
organisation: acme
application: shop
framework: laravel
php: "8.6"
environments:
production:
region: fr-par
domains:
- app.acme.eu
database: shop
cache: shop-cache
queue: sqs
storage: shop-uploads
mail: lettermint
web:
min: 0
max: 20
php- The PHP version the image is built on.
domains- The DNS record to make, a certificate once it answers, and the edge in front.
database- A Serverless SQL Database that sleeps when nobody asks.
cache- A Redis cache on the project's Private Network.
queue- Scaleway Queues, which wake a worker for each job.
storage- A bucket for uploads, served over bunny.net.
mail- The sending domain and its DNS records.
web- Between 0 and 20 containers; at 0 it sleeps and costs nothing.
What a deploy sets up.
Everything here is created inside your own Scaleway project or your own bunny.net account, and billed to you by the provider.
Web
Serverless containers running FrankenPHP, scaled between the bounds you set.
Inbrewless.yml:
web:
Database
Serverless SQL that sleeps when nobody asks, or Managed PostgreSQL that stays on, with a standby copy when you ask for one.
Inbrewless.yml:
database:
Queue
Scaleway Queues, which call a worker container the moment a job is put on, with your tries and backoff intact.
Inbrewless.yml:
queue:
Cache
A Managed Database for Redis on your project’s Private Network, over TLS.
Inbrewless.yml:
cache:
Storage
An Object Storage bucket for uploads, served over bunny.net on a subdomain of your own.
Inbrewless.yml:
storage:
A Lettermint project or Scaleway Transactional Email, with the sending domain and its DNS records.
Inbrewless.yml:
mail:
Domains
The record to make at your DNS, a certificate once it answers, and a pull zone in front.
Inbrewless.yml:
domains:
Secrets
Your own Scaleway Secret Manager, with a revision per change.
Inbrewless.yml:
brewless env:push
Schedule
Your Laravel schedule, read from the app on deploy; a worker is called at the moments a task is due.
Inbrewless.yml:
Nothing: it is read
Realtime
Laravel Reverb on a container of its own, with browsers connecting straight to it.
Inbrewless.yml:
realtime:
What a deploy does, in order.
Every release runs the same way, whether you start it from your laptop or from a pipeline with a token.
- Your code is uploaded and built as a job inside your own Scaleway project. The build never runs on our machines and your source never passes through us.
- Brewless plans what has to change against what is actually there, and shows you that plan. Nothing destructive happens without you agreeing to it.
- Release commands run before the release goes live. Migrations are one of these by default, and a migration that fails keeps the old release serving.
- The new release is put live, the edge cache is emptied, and the old one stays available to roll back to.
- Everything that changed is written to the audit trail: who asked, what moved and when.
A release on every push.
Push to a branch and the environment that follows it goes live. Two ways, both on GitHub; GitLab, Bitbucket and Codeberg are available on request.
| Deploy on push | Your own pipeline | |
|---|---|---|
| What starts it | A signed webhook from GitHub. |
A GitHub Actions workflow that runs brewless deploy.
|
| Tests first | No: every push to the branch goes live. | Yes: the deploy waits until your tests pass. |
| Who fetches the code | A job in your own Scaleway project, with a read-only deploy key. | The runner, which puts it in your own bucket. |
| What GitHub holds | A read-only deploy key and a webhook, placed with the Brewless GitHub App in one click. The private key stays in your Secret Manager. | A pipeline token that deploys this one application. |
| What a push may change | Sizes, release commands and plain variables. Anything else needs a deploy by someone who may manage the app. |
All of brewless.yml, with the rights of whoever made the token.
|
| Where you follow it | Live in the console, step by step, with what the run cost and a mail when it fails. | A check on the commit in GitHub, and the log of the run. |
| What there is to keep | Nothing: no workflow file and no runner. | A workflow file and a token with an end date. |
The command line.
Install it once with composer global require brewless/cli. Everything the console does, it does too, which is what makes it usable from a pipeline.
brewless init
Looks at your project, works out what it needs and writes a brewless.yml. If there is a vapor.yml, it reads that and matches it.
brewless deploy
Builds and releases an environment. With a pipeline token in BREWLESS_API_TOKEN it runs from GitHub Actions after your tests pass; the console writes that workflow for you.
brewless plan
Shows what a deploy would change, without changing anything.
brewless env:pull and env:push
Your variables and secrets, between your machine and your own Secret Manager. A change reaches the containers with the next deploy.
brewless logs
What your app wrote, from the provider, without opening a console.
brewless rollback
Puts an earlier release back. It brings back your code and your variables; it does not undo a migration.
brewless db:import copies a database in, and brewless storage:import copies files from an S3 bucket at AWS or anywhere else that speaks S3. Nothing is removed at the far end, so you can run both while the old setup is still serving.
Questions about what you get
- Do I need to write a Dockerfile?
- No. Brewless builds your image for you from
brewless.yml, with the PHP version you name and the extensions a Laravel app needs. The server files are there if you want them, so you can change the Caddy configuration or php.ini, but nothing asks you to start from scratch. - What happens to my migrations?
- They run as a release command, before the release goes live. A migration that fails stops the release, and the old one keeps serving, so a broken deploy does not take your app down. Migrations are never run by hand inside a container.
- Can I run an Artisan command on production?
- Yes, against the live release, from the console or the command line. Commands that never end, such as queue:work, are refused, because nothing on a serverless container stays running.
- Where do my environment variables live?
- Plain values go under variables in
brewless.yml, in your repository. Secrets go into your own Scaleway Secret Manager withbrewless env:push, which keeps a revision per change. Brewless keeps the name and the revision, never the value, and refuses a name that looks like a secret inbrewless.yml. - How many environments can I have?
- As many as you want, on every plan, including the free one. An environment is a line in
brewless.yml, so a branch getting its own is a small change rather than a billing decision. - Can I deploy from CI instead of my laptop?
- Yes. On your application's Deploy on push page the console writes a GitHub Actions workflow and makes a pipeline token for that one application: your tests run first, then
brewless deploy. Or let Deploy on push release every push without a pipeline, which is how Brewless itself is deployed.
Read more
- The quickstart in the documentation
- Laravel migrations as a release step
- Laravel secrets without a
.envfile in production - Deploying Laravel from CI with a pipeline token
- Serverless SQL or Managed PostgreSQL
- European services your app can use
The rest of Brewless
- Serverless How a Laravel app runs on containers that start with traffic and stop when it is quiet.
- Europe Which companies hold your app and your data, and where the exceptions are.
- Ownership What is yours, what is ours, and what keeps running if you stop paying us.
- Deploy on push Push to a branch and its environment goes live, with or without a CI pipeline of your own.
- Pricing One plan fee from us, and your own provider bills at their list prices.
Want to try it on your own app?
Register with your work email and deploy your first Laravel app to your own Scaleway account today.
One application free, production included. No credit card; you start paying when you want your own domain or more.