Laravel Rust and Laravel Go
Deploy Laravel Rust or Laravel Go on Galaxy and configure the app's environment and health checks.
Choose Laravel Rust or Laravel Go when you create an app. Galaxy builds your web server and fills in common production settings. This guide covers the compiled Rust and Go frameworks, not Laravel PHP. Pin your dependencies and test upgrades before deploying them.
Prerequisites
- A Galaxy account
- Your Laravel Rust or Laravel Go app in a Git repo
- A payment method added for identity verification
1. Prepare Your App
Keep Cargo.toml and its laravel-rust dependency in the build root.
Enable the Cargo features that match your services: database-postgres for PostgreSQL, database-mysql for MySQL, and redis for Redis. If you set DATABASE_URL or REDIS_URL without its required feature, the build error tells you which feature to add.
Keep go.mod in the build root with its go.laravel.com dependency. The dashboard recommends Go 1.27 or newer.
Match the database driver registered in bootstrap/app.go to your database. The Laravel Go starter registers PostgreSQL. If you're using MySQL, register the MySQL driver instead. Changing the connection string alone doesn't switch drivers.
If your app has a frontend package.json at the build root, Galaxy runs npm ci and npm run build for its assets. Commit the npm lockfile and make sure the build script works. Galaxy reads the Node.js major version from .nvmrc or a recognized engines.node value, or uses Node.js 24 for this assets step.
2. Deploy
Choose your app type
In the Galaxy dashboard, click Create New > Deploy App, then select Laravel Rust or Laravel Go.
Configure and deploy
Follow the Git deployment steps. If you started with Rust or Go, turn on the matching Laravel switch under Build Configuration. If you use a database or Redis, add the connection settings your app expects in Configure and Deploy.
With Galaxy MCP, use rust for Laravel Rust or go for Laravel Go. Galaxy recognizes Laravel from the project's dependencies.
3. Configure (Optional)
| Setting | Default behavior |
|---|---|
APP_KEY | Galaxy generates and saves a key if you haven't provided one. Keep the existing key when moving an app whose data or cookies depend on it. |
APP_ENV, APP_DEBUG, APP_URL | Default to production, false, and the primary domain's HTTPS URL (if one is set). Galaxy keeps values you set yourself. |
SERVER_HOST, SERVER_PORT | The web server binds to 0.0.0.0 and uses Galaxy's PORT unless you override the defaults. |
| Health check and shutdown | On the first build that detects Laravel, Galaxy changes the default health check from / to /up and the default shutdown grace period from 5 to 25 seconds. Other values are preserved. |
Database and Redis: Galaxy doesn't attach these services automatically. Set DATABASE_URL in Variables. For Laravel Rust, set REDIS_URL if the app uses Redis. On paid plans, if DATABASE_URL is set and Pre-Deploy Command is blank, Galaxy uses /app/server migrate --force to run your app's migrations before the new version goes live.
Workers and scheduling: Galaxy starts the web process only. It doesn't start a separate queue worker or scheduler by default.
4. Try It
Start with Laravel Rust or Laravel Go. After deploying, check that the app responds on /up if you're using the default health check.

