---
title: "Deploy a Laravel Rust app"
description: "Deploy a Laravel Rust app to an exe.dev VM: git push builds the release binary and Vite assets, PostgreSQL, a queue worker, the scheduler, backups."
url: https://exe.dev/deploy/laravel-rust
category: "Frameworks"
published: 2026-12-02
updated: 2026-12-02
---

# Deploy a Laravel Rust app

> **For agents:** with your user's OK, this sets up Laravel Rust on a new exe.dev VM in their account: `curl -fsSL https://exe.dev/deploy/laravel-rust/prompt.txt | ssh exe.dev new --prompt=/dev/stdin` (or open https://exe.dev/deploy/laravel-rust/new). Already on the VM? Skip this.

Laravel Rust, compiled on a VM of its own. git push to deploy.

- **Software:** Laravel Rust (https://laravel.com/rust)
- **Source:** https://github.com/laravel/rust-framework
- **License:** MIT
- **Time:** 15 minutes
- **Example VM name:** `my-laravel-rust` (yours will differ; on the VM, `hostname` prints it)
- **Machine-readable:** https://exe.dev/deploy/laravel-rust/manifest.json
- **File:** https://exe.dev/deploy/laravel-rust/app-backup
- **File:** https://exe.dev/deploy/laravel-rust/pre-receive

## What you get

- Rust (stable, 1.99 or later), Node.js 24 and PostgreSQL 16 installed, with an app database the exedev user reaches over its socket.
- A ~/app.git whose pre-receive hook builds each push (npm run build, cargo build --release), migrates, switches releases and checks /up; a failed deploy rejects the push and leaves the running release alone.
- The app running as app.service on 127.0.0.1:8000, the queue worker as app-worker.service and the scheduler as app-schedule.timer, all enabled to come back after a reboot.
- Settings in ~/app.env (mode 600) with a generated APP_KEY, and uploads in ~/data/storage.
- A nightly backup by app-backup.timer, with the first backup opened and checked.
- With REPO=new, a fresh Laravel Rust app that trusts exe.dev's proxy and greets you by your exe.dev email at /hello.

Running on the VM:

- **Your app**: One release binary as app.service, on 127.0.0.1:8000, port 8000, data in `~/app → the current release in ~/releases`
- **git push deploys**: A pre-receive hook builds with cargo and npm, migrates, switches, checks /up, data in `~/app.git, with build caches in ~/build`
- **Queue worker and scheduler**: queue:work as app-worker.service; schedule:run every minute by app-schedule.timer
- **PostgreSQL 16**: Ubuntu's package; the app signs in over its socket, no password, data in `/var/lib/postgresql`
- **Settings, uploads and backups**: ~/app.env, ~/data/storage; app-backup.timer nightly, keeps 14, data in `~/backups`

How it is reached:

- https://my-laravel-rust.exe.xyz/ (private): Your app, until you make it public
- ssh my-laravel-rust.exe.xyz (private): git push to deploy; shell and logs

## Deploy with Shelley

Open https://exe.dev/deploy/laravel-rust/new to create a VM whose agent, Shelley, follows this recipe. From a terminal:

```sh
curl -fsSL https://exe.dev/deploy/laravel-rust/prompt.txt | ssh exe.dev new --prompt=/dev/stdin
```

Then, on your own computer:

```sh
git clone -o exe my-laravel-rust.exe.xyz:app.git    # if you started fresh
git remote add exe my-laravel-rust.exe.xyz:app.git  # or, in your own app's checkout
```

Or follow the steps below by hand.

Laravel Rust is Laravel rebuilt in Rust, on Axum and Tokio: routing,
models, queues, the scheduler, mail and Inertia, compiled with your
migrations into a single binary. This page puts yours on an exe.dev VM
of its own. `git push` compiles it there and switches to the new release,
PostgreSQL runs next to it, and the queue worker and scheduler come back
after a reboot. exe.dev serves it over HTTPS, private until you share it.

Laravel Rust is in beta. For the other Laravels, see
[Deploy a Laravel PHP app](/deploy/laravel) and
[Deploy a Laravel Go app](/deploy/laravel-go).

## Open your app

When Shelley is done, open `https://my-laravel-rust.exe.xyz/` and sign in
to exe.dev. Started fresh? You'll see Laravel's welcome page, and
`/hello` greets you by your exe.dev email. Only you, and people you
[share the VM with](/docs/sharing), can open it.

On the VM:

| What | Where |
|---|---|
| The repository you push to | `~/app.git` |
| The running release: `app`, `public/`, `resources/` | `~/app` → `~/releases/<time>-<commit>` |
| Settings and secrets (mode 600) | `~/app.env`, linked as `.env` in each release |
| Uploads and other files the app writes | `~/data/storage` |
| The database | PostgreSQL, database `app` |
| Backups | `~/backups` |
| Logs | `journalctl -u app` (and `-u app-worker`, `-u app-schedule`) |

The binary is the app's console too: `cd ~/app && ./app route:list`,
`./app migrate:status`, `./app queue:failed`.

## Deploy with git push

On your computer, clone the new app from the VM, or add the VM as a
remote in your own checkout:

```bash
git clone -o exe my-laravel-rust.exe.xyz:app.git my-laravel-rust
git remote add exe my-laravel-rust.exe.xyz:app.git   # or, in your checkout
```

Then commit and push:

```bash
git push exe main
```

If `ssh` can't find the VM that way, use
`vm+my-laravel-rust@vm.exe.xyz:app.git` ([why](/docs/faq/ssh-destination)).
The deploy runs inside `git push`:

```text
remote: -----> Building 3f2c9a1 Add a guestbook
remote:    Compiling example-app v0.1.0 (/home/exedev/build)
remote:     Finished `release` profile [optimized] target(s) in 13.02s
remote: Migrating `2026_12_01_120000_create_messages_table`...
remote: -----> Switching to 3f2c9a1
remote: -----> Deployed 3f2c9a1 to https://my-laravel-rust.exe.xyz/
```

The hook builds the pushed commit in `~/build`: `npm ci`, `npm run build`
and `cargo build --release --locked`. It copies the binary, `public/` and
`resources/` into a new directory under `~/releases`, runs
`./app migrate --force`, points `~/app` at it, restarts the app and the
queue worker, and checks that `/up` answers. `~/build` keeps cargo's
output, so after the first five-minute build, deploys take under a
minute. The last three releases stay.

If the build or a migration fails, git rejects the push and nothing
changes. If the new release doesn't answer `/up`, the hook switches back
at once and rejects the push:

```text
remote: -----> b5c1d02 answers /up with HTTP 000. Its errors: journalctl -u app
remote: -----> Rolling back to 3f2c9a1
remote: -----> Deploy failed. Still running 3f2c9a1.
```

To roll back, push an older commit: `git push -f exe <good-sha>:main`.
A rollback can't undo migrations, so keep them backward-compatible.

## Settings and secrets

`~/app.env`, readable only by you, is every release's `.env`. It starts
with production values:

```bash
APP_ENV=production
APP_KEY=base64:...        # generated; encrypts cookies and sessions
APP_DEBUG=false
APP_URL=https://my-laravel-rust.exe.xyz
LOG_CHANNEL=stderr        # to the journal: journalctl -u app
DATABASE_URL=postgres:///app?host=/var/run/postgresql
```

In production, Laravel answers only requests for `APP_URL`'s host, so
change it when you add a domain. After editing, restart:
`sudo systemctl restart app app-worker`. `VITE_*` values are compiled
into the frontend, so for those, redeploy with
`~/app.git/hooks/pre-receive </dev/null`. Keep a copy of `APP_KEY`
somewhere safe; the nightly backup has it.

### Behind exe.dev's proxy

exe.dev's [HTTPS proxy](/docs/proxy) ends TLS and connects to
127.0.0.1:8000, saying what the visitor asked for in `X-Forwarded-Proto`,
`-Host` and `-For`. Laravel believes those only from proxies it trusts,
so a new app trusts loopback in `src/app.rs`:

```rust
.with_middleware(|middleware, _| {
    // exe.dev's HTTPS proxy connects from 127.0.0.1: believe its X-Forwarded-* headers.
    middleware.trust_proxies(["127.0.0.1"]);
    // ...
})
```

Without it, `request.ip()` is always `127.0.0.1` and the URLs Laravel
builds start with `http://`. Don't use `"*"`: exe.dev appends to any
`X-Forwarded-For` a visitor sends, so the first address can be forged.

## The database

PostgreSQL 16 runs on the VM. The `app` database belongs to the `exedev`
user, which the app runs as, so it signs in over the socket with no
password. Look inside with `psql app`. Sessions, the cache and the queue
are tables there too.

For SQLite instead, replace `database-postgres` with `database-sqlite`
in your `Cargo.toml`, and in `~/app.env` set `DB_CONNECTION=sqlite` and
`DATABASE_URL=sqlite:///home/exedev/data/app.db?mode=rwc`. In
`~/bin/app-backup`, swap the `pg_dump` line for
`sqlite3 ~/data/app.db ".backup '$work/app.db'"`.

## Queues and the scheduler

`app-worker.service` runs `./app queue:work` on the `database` queue and
restarts on every deploy, since a worker runs the code it was compiled
with. `app-schedule.timer` runs `./app schedule:run` every minute. Check
them:

```bash
cd ~/app && ./app schedule:list
journalctl -u app-worker -u app-schedule -n 20 --no-pager
```

For more workers, add `--concurrency 4` to `ExecStart` with
`sudo systemctl edit --full app-worker`.

## Backups

Every night, [app-backup](https://exe.dev/deploy/laravel-rust/app-backup)
writes `~/backups/app-<time>.tar.gz`: a `pg_dump` of the database,
`storage/app`, `~/app.env` and the code as a git bundle. It keeps 14.
Take one now with `~/bin/app-backup`. Keep copies off the VM; on your
computer:

```bash
scp -r my-laravel-rust.exe.xyz:backups .
```

## Make it public, add a domain

On your computer:

```bash
ssh exe.dev share set-public my-laravel-rust
```

For your own domain, point a CNAME at `my-laravel-rust.exe.xyz`, run
`ssh exe.dev domain add my-laravel-rust app.example.com`
([custom domains](/docs/cnames)), and set
`APP_URL=https://app.example.com` in `~/app.env`.

## Beta notes

Laravel Rust 0.1.4, as tested here on December 1, 2026:

- The SQLite URL options in Laravel's database guide (`journal_mode`,
  `synchronous`, `busy_timeout`) fail with `unknown query parameter`;
  leave them out.
- A release needs `public/` and `resources/` next to the binary; the
  hook copies them.
- The built-in Reverb server is for development only, per Laravel's
  docs.

## The nuts and bolts

Happy with what Deploy set up? You can stop here. These are the steps
Shelley follows, which you can also run by hand.

<details id="create-the-vm" data-manual-setup class="dp-details">
<summary>Set up by hand</summary>

### Create the VM

On your computer (pick another name if `my-laravel-rust` is taken):

```bash
ssh exe.dev new --name=my-laravel-rust
ssh my-laravel-rust.exe.xyz
```

Everything else runs **on the VM**, as `exedev`.

### Install Rust, Node.js and PostgreSQL

Rust from rustup, Node.js 24 from NodeSource for the Vite build,
PostgreSQL 16 from Ubuntu, and the Laravel CLI for `laravel new`:

```bash
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal
curl -fsSL https://deb.nodesource.com/setup_24.x | sudo -E bash -
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y nodejs postgresql
curl -fsSL https://laravel.com/install.sh | sh
export PATH="$HOME/.laravel/bin:$HOME/.cargo/bin:$PATH"
rustc --version; node --version; psql --version; laravel --version
```

Expect `rustc 1.100` or later, `v24`, `16` and `Laravel CLI`.

### The database and settings

A PostgreSQL role for `exedev` and its `app` database, the directories,
and the settings file with a fresh `APP_KEY`:

```bash
sudo -u postgres createuser exedev
sudo -u postgres createdb -O exedev app
mkdir -p ~/data/storage ~/releases ~/backups ~/bin
if [ ! -e ~/app.env ]; then
  install -m 600 /dev/null ~/app.env
  cat >> ~/app.env <<ENV
# Laravel Rust settings; each release links this file as .env.
# Keep a copy somewhere safe: APP_KEY decrypts cookies and sessions.
APP_NAME=Laravel
APP_ENV=production
APP_KEY=base64:$(openssl rand -base64 32)
APP_DEBUG=false
APP_URL=https://$(hostname).exe.xyz
LOG_CHANNEL=stderr
LOG_LEVEL=info
DB_CONNECTION=postgres
DATABASE_URL=postgres:///app?host=/var/run/postgresql
SESSION_DRIVER=database
CACHE_STORE=database
QUEUE_CONNECTION=database
BROADCAST_CONNECTION=log
FILESYSTEM_DISK=local
MAIL_MAILER=log
ENV
fi
psql app -c 'select current_user'
stat -c '%a %n' ~/app.env
```

Expect `exedev` and `600 /home/exedev/app.env`. An existing `~/app.env`
is left alone: its `APP_KEY` decrypts your sessions.

### The services

The app, the queue worker, and the scheduler, each running the binary in
`~/app`. They wait for the first deploy:

```bash
sudo tee /etc/systemd/system/app.service >/dev/null <<'UNIT'
[Unit]
Description=Laravel Rust app on 127.0.0.1:8000
After=network.target postgresql.service
Wants=postgresql.service
ConditionPathExists=/home/exedev/app/app

[Service]
User=exedev
WorkingDirectory=/home/exedev/app
ExecStart=/home/exedev/app/app
Restart=always
RestartSec=2
TimeoutStopSec=30

[Install]
WantedBy=multi-user.target
UNIT
sudo tee /etc/systemd/system/app-worker.service >/dev/null <<'UNIT'
[Unit]
Description=Laravel Rust queue worker
After=network.target postgresql.service
Wants=postgresql.service
ConditionPathExists=/home/exedev/app/app

[Service]
User=exedev
WorkingDirectory=/home/exedev/app
ExecStart=/home/exedev/app/app queue:work
Restart=always
RestartSec=5

[Install]
WantedBy=multi-user.target
UNIT
sudo tee /etc/systemd/system/app-schedule.service >/dev/null <<'UNIT'
[Unit]
Description=Laravel Rust scheduler (app schedule:run)
ConditionPathExists=/home/exedev/app/app

[Service]
Type=oneshot
User=exedev
WorkingDirectory=/home/exedev/app
ExecStart=/home/exedev/app/app schedule:run
UNIT
sudo tee /etc/systemd/system/app-schedule.timer >/dev/null <<'UNIT'
[Unit]
Description=Run the Laravel Rust scheduler every minute

[Timer]
OnCalendar=*-*-* *:*:00
AccuracySec=1s

[Install]
WantedBy=timers.target
UNIT
sudo systemctl daemon-reload
sudo systemctl enable app app-worker app-schedule.timer
sudo systemctl start app-schedule.timer
```

### The deploy hook and backups

Fetch [pre-receive](https://exe.dev/deploy/laravel-rust/pre-receive),
the hook from [Deploy with git push](#deploy-with-git-push), and
[app-backup](https://exe.dev/deploy/laravel-rust/app-backup), and run
the backup nightly:

```bash
curl -fsSL -o ~/bin/pre-receive https://exe.dev/deploy/laravel-rust/pre-receive
curl -fsSL -o ~/bin/app-backup https://exe.dev/deploy/laravel-rust/app-backup
chmod +x ~/bin/pre-receive ~/bin/app-backup
sudo tee /etc/systemd/system/app-backup.service >/dev/null <<'UNIT'
[Unit]
Description=Back up the Laravel Rust app to ~/backups

[Service]
Type=oneshot
User=exedev
ExecStart=/home/exedev/bin/app-backup
UNIT
sudo tee /etc/systemd/system/app-backup.timer >/dev/null <<'UNIT'
[Unit]
Description=Back up the Laravel Rust app every night

[Timer]
OnCalendar=*-*-* 03:00:00
RandomizedDelaySec=1h
Persistent=true

[Install]
WantedBy=timers.target
UNIT
sudo systemctl daemon-reload
sudo systemctl enable --now app-backup.timer
```

### Get the code

**Start a new app** (`REPO=new`). Create it with `laravel new`, which also
runs a first debug build (about a minute), then trust exe.dev's proxy
and add `/hello`:

```bash
cd /tmp && laravel new my-app --rust
cd /tmp/my-app
sed -i 's/^\( *\)\.with_middleware(|middleware, _| {$/&\n\1    \/\/ exe.dev'"'"'s HTTPS proxy connects from 127.0.0.1: believe its X-Forwarded-* headers.\n\1    middleware.trust_proxies(["127.0.0.1"]);/' src/app.rs
perl -0pi -e 's|(    route.get\("/", welcome::show\);\n)|$1\n    // exe.dev'"'"'s proxy names visitors signed in to exe.dev in X-ExeDev-Email.\n    route.get("/hello", async \|request: Request\| {\n        let email = request.header("x-exedev-email").unwrap_or("stranger");\n        format!("Hello, {email}! You asked for {} from {}.\\n", request.url(), request.ip())\n    });\n|' src/routes/web.rs
grep -c 'trust_proxies\|x-exedev-email' src/app.rs src/routes/web.rs
```

Expect `src/app.rs:1` and `src/routes/web.rs:1`. Commit it into a new
`~/app.git` with the hook, and push, which deploys:

```bash
git init -q --bare -b main ~/app.git
ln -s ~/bin/pre-receive ~/app.git/hooks/pre-receive
cd /tmp/my-app && git init -q -b main
git add -A
git -c user.name="exe.dev" -c user.email="exedev@$(hostname).exe.xyz" commit -q -m "New Laravel Rust app"
git push -q ~/app.git main
cd ~ && rm -rf /tmp/my-app
```

The first build takes about five minutes, and the push ends with
`-----> Deployed`.

**Or bring your app** from GitHub (replace `OWNER/NAME`), and deploy it:

```bash
git clone -q --bare https://github.com/OWNER/NAME.git ~/app.git
ln -s ~/bin/pre-receive ~/app.git/hooks/pre-receive
git clone -q ~/app.git /tmp/app-check && grep -E '^laravel-rust|^rust-version' /tmp/app-check/Cargo.toml; rm -rf /tmp/app-check
~/app.git/hooks/pre-receive </dev/null
```

The `grep` shows the database feature (`database-postgres` matches the
settings above) and the Rust version it needs. Add the app's own
settings from its `.env.example` to `~/app.env`. The hook runs
`npm ci` and `cargo build --locked`, so the repository needs its
`package-lock.json` and `Cargo.lock`; `laravel new` apps commit both. For a **private**
repository, attach it with the [GitHub integration](/docs/integrations-github),
on your computer:

```bash
ssh exe.dev integrations add github --name app-repo --repository OWNER/NAME --attach vm:my-laravel-rust
```

Then clone `https://github.int.exe.xyz/OWNER/NAME.git` on the VM
instead; no token lands on the disk.

### Check the app

Ask for pages the way exe.dev's proxy does:

```bash
for s in app app-worker app-schedule.timer app-backup.timer; do echo "$s $(systemctl is-active $s)"; done
h=$(hostname).exe.xyz
curl -s -o /dev/null -w '%{http_code}\n' -H "Host: $h" localhost:8000/up
curl -s -H "Host: $h" -H "X-Forwarded-Host: $h" -H 'X-Forwarded-Proto: https' \
  -H 'X-Forwarded-For: 203.0.113.7' -H 'X-ExeDev-Email: you@example.com' localhost:8000/hello
```

Expect four `active`, `200`, and, for a new app,
`Hello, you@example.com! You asked for https://my-laravel-rust.exe.xyz/hello from 203.0.113.7.`

### Test a backup

```bash
backup=$(~/bin/app-backup)
rm -rf /tmp/restore-test && mkdir /tmp/restore-test && tar -xzf "$backup" -C /tmp/restore-test
pg_restore --list /tmp/restore-test/app.dump | grep -c 'TABLE DATA'
git -C ~/app.git bundle verify -q /tmp/restore-test/app.bundle && echo 'code ok'
grep -c '^APP_KEY=base64:' /tmp/restore-test/app.env
rm -rf /tmp/restore-test
```

Expect a count of tables, `code ok` and `1`.

</details>

<details id="restore" class="dp-details">
<summary>Restore a backup</summary>

On the VM, pick a backup (`ls -lt ~/backups`), stop the app, and load
the database, uploads and settings:

```bash
backup=~/backups/app-20261201-030000.tar.gz    # the one you want
sudo systemctl stop app app-worker app-schedule.timer
rm -rf /tmp/restore && mkdir /tmp/restore && tar -xzf "$backup" -C /tmp/restore
pg_restore --clean --if-exists --no-owner -d app /tmp/restore/app.dump
rsync -a --delete /tmp/restore/storage/app/ ~/data/storage/app/
install -m 600 /tmp/restore/app.env ~/app.env
sudo systemctl start app app-worker app-schedule.timer
rm -rf /tmp/restore
```

On a new VM, follow [Set up by hand](#create-the-vm) up to **Get the
code**, copy the backup over, and load the code from its bundle before
restoring as above:

```bash
mkdir /tmp/restore && tar -xzf ~/app-20261201-030000.tar.gz -C /tmp/restore
git clone -q --bare /tmp/restore/app.bundle ~/app.git
ln -s ~/bin/pre-receive ~/app.git/hooks/pre-receive
~/app.git/hooks/pre-receive </dev/null
```

If the VM has a new name, set `APP_URL` to its address after restoring
`~/app.env`, and `sudo systemctl restart app`.

</details>

<details id="update" class="dp-details">
<summary>Update Laravel Rust, Rust and Node.js</summary>

**Laravel Rust and your crates** are in `Cargo.lock`, so an update is a
commit. On your computer: `cargo update`, `cargo test`, commit, and
`git push exe main`. While it's in beta, read the
[release notes](https://github.com/laravel/rust-framework/releases)
first.

**Rust**, on the VM, then redeploy, which rebuilds everything:

```bash
rustup update
~/app.git/hooks/pre-receive </dev/null
```

**PostgreSQL and Node.js** update with apt:
`sudo apt-get update && sudo apt-get upgrade -y`.

</details>

<details id="troubleshooting" class="dp-details">
<summary>Something not working?</summary>

```bash
journalctl -u app -n 50 --no-pager
journalctl -u app-worker -n 50 --no-pager
```

- **400 Bad Request on every page:** the address isn't `APP_URL`'s host.
  Fix `APP_URL` in `~/app.env` and `sudo systemctl restart app`.
- **`http://` links, or every visitor is `127.0.0.1`:** the app doesn't
  trust exe.dev's proxy; see [Behind exe.dev's proxy](#behind-exedevs-proxy).
- **502 from exe.dev:** nothing answers on 127.0.0.1:8000. Check
  `systemctl status app` and its journal.
- **`the lock file needs to be updated` or `cannot create the lock
  file`:** run `cargo build` on your computer and commit `Cargo.lock`.
- **The build was killed:** out of memory. Add
  `CARGO_BUILD_JOBS=1` to the environment in `~/bin/pre-receive`, or use
  a [bigger VM](/docs/new-vm-size).
- **Disk filling up:** `du -sh ~/build ~/.cargo ~/releases ~/backups`.
  `cargo clean` in `~/build` and `rm -rf ~/.cargo/build` free the
  caches; the next deploy rebuilds from scratch.
- **`git push` rejected with "pre-receive hook declined":** the deploy
  failed and the old release still runs; the lines above say why.

</details>

## Frequently asked questions

### Is Laravel Rust ready for production?

It's a beta (0.1), released December 1, 2026, and Laravel says releases before 1.0 may break APIs and configuration. Pin it with `Cargo.lock`, which the deploy builds with `--locked`, and read the release notes before `cargo update`. For an app that has to be boring today, [Laravel PHP](/deploy/laravel) is the safe choice.

### Why build on the VM?

So `git push` is the whole deploy, and what runs is always a commit in `~/app.git`. The first release build takes about five minutes on the VM's 2 vCPUs and uses about 1 GB of memory; after that, cargo reuses `~/build`, and a change to your own code deploys in under a minute. To build somewhere else, such as CI, copy the binary, `public/` and `resources/` into a new directory in `~/releases` and follow the second half of `~/bin/pre-receive`.

### Why PostgreSQL and not SQLite?

It's Laravel Rust's default, and Laravel recommends running the database you develop against. On the VM it's one apt package, and the app signs in over a socket with no password. SQLite works too; see [The database](#the-database).

### Does a deploy drop requests?

Barely. On restart Laravel stops taking new connections and lets requests in flight finish, and the new binary is answering within about a second. Requests that arrive in that gap get an error from exe.dev's proxy.

### Can I use Reverb for WebSockets?

Laravel's docs call the built-in `reverb:start` server a local development tool and point production at managed Reverb on Laravel Cloud, or any Pusher-protocol service: set the `REVERB_*` variables in `~/app.env` and redeploy.

### How does this compare to Laravel Cloud?

Laravel Cloud is the managed option: autoscaling, scale-to-zero, managed databases, queues and Reverb. This page is one always-on server you can SSH into, with the database, worker and scheduler on the same disk, and an agent beside your code. exe.dev doesn't scale across machines.

### How big a VM does it need?

The default (2 vCPUs, 8 GB, 25 GB of disk) is enough. The binary is about 75 MB, the starter uses about 35 MB of memory, and the build caches take about 4 GB of disk.


## Related

- [Deploy a Laravel PHP app](https://exe.dev/deploy/laravel.md): Your Laravel PHP app on a server of its own. git push to deploy.
- [Deploy a Laravel Go app](https://exe.dev/deploy/laravel-go.md): Laravel Go, compiled on a VM of its own. git push to deploy.
- [Deploy a Go web app](https://exe.dev/deploy/go.md): One Go binary on a VM of its own. git push to deploy.
- [Self-host PostgreSQL](https://exe.dev/deploy/postgres.md): Your own Postgres on a real disk, with backups you've actually restored.
- [Deploy a Rails app](https://exe.dev/deploy/rails.md): Your Rails app on a server of its own. git push, and it's live.
- [Deploy a Django app](https://exe.dev/deploy/django.md): Your Django app on a computer of its own. git push to deploy.
