Deploy
Deploy Go,
on a server run for you.Ship a Go service straight from GitHub. SelfHost builds your module into a lean binary and runs it on a dedicated server we provision and maintain, with auto-deploy on push, a managed database, custom domains, and SSL.
Why provision a VPS for one binary, when you can SelfHost it?
What you get
Your Go service, in production.
On a server you control.
Go compiles to a single static binary, which makes it ideal for a server you own. SelfHost detects your Go module, builds it, and runs it, whether it is a net/http service, Gin, Echo, Fiber, or a gRPC backend. Add a database and a domain and you are live, with nothing to patch.
Deploy in 5 steps
From zero to live.
No server to set up.
From a Go module to a live service in a few steps.
Create a Project
Name it and a dedicated server is provisioned for you in minutes.
Connect your Go repo
Connect GitHub or paste a repo URL and pick a branch. Nixpacks detects Go from your go.mod and builds the binary.
Set the start command and port
Point it at your built binary, set the listen port to match the project, and add any build flags you need, or bring a Dockerfile.
Set environment variables
Add your config and secrets, or paste a .env to import in bulk.
Add a database and a domain
Attach a PostgreSQL, Redis, MySQL, or MongoDB, point a custom domain, and HTTPS goes live automatically.
Environment variables
Configure it
in minutes.
Go services usually read config from the environment:
Paste a .env to import in bulk, or set keys one by one. Values are wired into every build and deploy.
Key variables
What you get
Go, the easy way.
On a server you control.
net/http, Gin, Echo, Fiber, Chi, or gRPC. The build runs your module, so anything compiles and runs.
A compiled binary uses little memory, so a small project server goes a long way.
Live CPU, memory, and connection metrics on a dedicated server, not a shared black box.
Add PostgreSQL, Redis, MySQL, or MongoDB, or a dedicated managed Postgres instance.
Push to deploy, with PR previews, rollback, a custom domain, and renewed HTTPS.
From around $0.02/hr against prepaid credits, paused at a zero balance.
A whole backend on one server
Run your Go API, a frontend, and a database on the same project server, billed as one server. Stop it and you pay nothing.