All templates

Deploy Go Fiber on Rebasable

Go web server with Fiber v2, built automatically with no Dockerfile.

Runtime: go Free instance goapi

How it works

Rebasable detects Go from go.mod, downloads modules with go.sum verification, compiles a static binary and runs it. The server reads PORT. Go binaries start in milliseconds, which also makes cold starts after sleep fast.

Run it locally

go run .   # http://localhost:3000

Use it as your own repository

Copy the go-fiber folder of the templates repository into a new repo (the files at the root, rebasable.yaml included) and push it. Then add a Deploy button to its README, or create it from Blueprints, New blueprint in the dashboard. From then on, every push deploys, and pull requests get preview environments.

Good to know

  • Using net/http, Gin, Echo or Chi instead? The same rebasable.yaml works; only the code changes.
  • Several binaries in one repo: set buildCommand: go build -o app ./cmd/api and startCommand: ./app.