Until today, a Go or Rust web app meant renting a server: install the toolchain, set up a service, put a proxy in front, renew certificates. Not any more. Every Rivervo hosting plan now runs Go and Rust applications, next to PHP, Node.js and Python — on your own domain, with HTTPS, on the plan you already have.
That includes Laravel Rust, the new framework from the Laravel team: Laravel's routing, models, migrations and queues, compiled into one fast Rust program.
What changed
The website menu of your hosting used to have Node.js and Python. It is now Node.js, Python, Go and Rust. A Go or Rust application works the same way as the others:
- it answers at an address you choose — the whole domain or a subdomain;
- it starts by itself, restarts if it stops, and runs next to your website;
- it has its own environment variables, set in the panel.
Go and Rust are compiled languages: the source code has to be turned into a program first. You can do that in two ways — press Build in the panel, or build the program yourself and upload it.
Way 1: build in the panel
- Open your hosting, then Website → Node.js, Python, Go and Rust.
- Press New application and choose Go or Rust. Pick the domain and a folder for the files — for example
apps/api. A folder outsidepublic_htmlis safer: nobody can open your source files from the internet. - Upload the project to that folder with the File Manager or SFTP: the whole project with
go.modorCargo.toml. Leave outtarget/,node_modules/and.git/. - Press Build. The log shows each step live. When it says the build is done, your app is answering at its address.
The build runs on your hosting, inside your account and within your plan's resources. Changed the code? Upload the new files and press Build again. The application keeps serving the old version until the new one is ready, and later builds are much faster than the first: what was already downloaded and compiled is reused.
Go builds in seconds this way. Rust works too, but compiling Rust takes a lot of memory and time, and a hosting plan gives one application a share of a server, not a whole one. A small Rust service builds fine; a big project like Laravel Rust builds slowly the first time and may not fit in your plan's memory. For Rust we recommend way 2.
Way 2: build on your computer or in CI/CD (recommended for Rust)
Build the program where you have the resources — your own computer, or a CI/CD service such as GitHub Actions — and upload just the result. The program has to run on our servers: Linux, x86_64, with glibc 2.28 or a static build. Two simple ways to get that with Rust:
# static program (musl)
rustup target add x86_64-unknown-linux-musl
cargo build --release --target x86_64-unknown-linux-musl
# or a normal Linux program for glibc 2.28, with cargo-zigbuild
cargo zigbuild --release --target x86_64-unknown-linux-gnu.2.28For Go it is one line: GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -o server .
Then:
- Upload the program to the application's folder (the File Manager, SFTP, or
scpfrom your CI/CD job with an SSH key added in the panel). - In the application's settings, set Start command to the program, for example
./server. - Press Restart.
In CI/CD, the last step of the job uploads the program and touches tmp/restart.txt in the application's folder — the application restarts with the new program on its next request.
One rule for your code: listen on PORT
Your program gets the port to listen on in the PORT environment variable. Listen on it, on 127.0.0.1:
port := os.Getenv("PORT")
http.ListenAndServe("127.0.0.1:"+port, nil)let port = std::env::var("PORT").unwrap_or("8080".into());
let listener = tokio::net::TcpListener::bind(format!("127.0.0.1:{port}")).await?;Rocket reads ROCKET_PORT, which we set too. Axum, Actix Web, Gin, Echo, Fiber and plain net/http all work — anything that answers HTTP on that port. WebSockets work as well.
When you build in the panel, the program that runs is the main package in the folder's root for Go (or the only main package in the project), and the binary named in [package] of Cargo.toml for Rust. Leave Start command empty to run it as is.
Laravel Rust, step by step
1. Choose MySQL. The Laravel Rust starter uses PostgreSQL by default. Rivervo hosting comes with MySQL, so switch the feature in Cargo.toml:
laravel-rust = { version = "0.1", features = ["database-mysql", "redis"] }2. Create a database. In Website → Databases, create a database and a user, and give the user access to it.
3. Add the variables. In the application's settings, add:
| Variable | Value |
|---|---|
DB_CONNECTION | mysql |
DATABASE_URL | mysql://user:password@localhost/database |
SESSION_DRIVER | database (or cookie) |
CACHE_STORE | database |
4. Build. When you press Build in the panel, we recognise Laravel Rust and also:
- create an
APP_KEY, and setAPP_ENV=productionandAPP_URLto the application's address — only if you have not set them yourself; - build the front-end assets with Vite, if
package.jsonhas abuildscript, intopublic/build; - run
migrate --forcebefore the new version starts, so the database matches the code — if the migrations fail, the previous version keeps running; - start the app with
serve, so you don't need a start command.
If you build Laravel Rust yourself (way 2), upload the program and public/build, add APP_KEY, APP_ENV and APP_URL to the variables, set the start command to ./server serve --host 127.0.0.1 --port $PORT, and run the migrations from the terminal.
Working in the terminal
Like Node.js and Python, each Go or Rust application has its own command for the terminal, shown in the panel:
source ~/apps/api/.rivervo/activate && cd ~/apps/apiAfter it, go, cargo, rustc and npm work in that shell, and the program built in the panel is .rivervo/app — for Laravel Rust, .rivervo/app migrate:status and the other commands.
Hosting or Applications?
Hosting is the simple, fixed-price home for a website with an API or a small service beside it. If your Go or Rust project needs its own resources — several instances, autoscaling, managed PostgreSQL or Redis, preview deployments for every branch — use Rivervo Applications instead. It builds and runs the same Go, Rust and Laravel Rust projects from Git, in their own containers.
| Hosting | Applications | |
|---|---|---|
| Go, Rust, Laravel Rust | Yes | Yes |
| Price | Your hosting plan, nothing extra | Pay for the resources you choose |
| Builds | In your account, or upload your own | From Git, on every push |
| Database | MySQL | PostgreSQL, MySQL, Redis and more |
| Scaling | One instance | Several instances, autoscaling |
Questions
Is it on every plan? Yes. Go and Rust applications are on every hosting plan, like Node.js and Python, at no extra cost.
Which versions? The current stable Go and Rust. A go.mod that asks for a newer Go gets it automatically.
My build failed. What now? Open Build log in the application's menu: the last lines say what went wrong — usually a compile error, a missing file or a dependency that could not be downloaded. If the log says the build ran out of memory, build the program on your computer or in CI/CD and upload it (way 2). Stuck? Write to us: real people read every message.