Requirements
- Go 1.21+ installed locally
- Account on Vertra Cloud
Project Structure
Configuration
go.mod
vertracloud.config
Example: HTTP Server
Available Versions
Deploy
- Dashboard
- CLI
- VS Code
- Compress the project into a
.zip(folders likenode_modules,venvandtargetare removed automatically) or push it to GitHub. - In the dashboard, click New Project and upload the
.zipor paste the repository URL. - In Build, check the runtime (Go), the main file (
main.go) and the memory. Start and build commands are under Advanced settings. - Add your environment variables in Environment.
- In Network, turn on web publishing so the app gets a
*.vertraweb.appaddress (Pro plan or higher, 512 MB of memory). The app must listen on port 80. - Review and deploy. Follow the output in the Logs tab.
Notes
- Automatic compilation: Go is compiled inside the container during deployment
- Use
os.Getenv("PORT")to capture the correct port - Listen on
0.0.0.0to accept external connections - Recommended memory: 256MB for simple servers
- Dependencies are downloaded automatically via
go mod download