Requirements
- Go 1.21+ installed locally
- Account on Vertra Cloud
Project Structure
Configuration
go.mod
vertracloud.config
Example: HTTP Server
Available Versions
| Version | Status | Description |
|---|---|---|
| 1.23 | Recommended | Go 1.23 (recommended for production) |
| 1.23 | Latest | Go 1.23 (latest version) |
| 1.22 | Stable | Go 1.22 with extended support |
| 1.21 | Legacy | Go 1.21 with limited support |
Deploy
- Make sure
go.modandgo.sumare at root - Compress the project into ZIP (without
vendordirectory if present) - Select Go as language in the wizard
- Configure desired memory
- Click “Create Application”
The platform compiles Go code automatically inside the container. No need to build locally.
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