Deploy Go
How nesly detects, builds and serves a Go project — and the two commands that put it on a live URL.
Deploy Go on nesly
A Go project is built into a container and run as a server process.
cd your-project
nesly deploy --yes
The first deploy creates the project and prints the live URL; after that,
nesly deploy is enough.
How detection sees it
- A Go module (go.mod) runs as a container, built with the standard toolchain.
- A Dockerfile in the project root always wins when you need full control.
When detection is not what you want, say it yourself: build and start commands, root
directory and output directory live in nesly.toml
committed next to the code — see builds.
Worth knowing
- Read the port from os.Getenv("PORT") and listen on 0.0.0.0 — net/http's ":"+port form does both.
-
Attach a managed database with
nesly addon add postgres(ormssql) — connection env vars are injected on the next deploy. -
When a deploy fails,
nesly diagnosereads the logs for you and names the fix.
Full walkthrough: get started. Custom domains, backups, GitHub deploys and the rest of the reference: nesly CLI.