Skip to main content

Requirements

Project Structure

Configuration

go.mod

vertracloud.config

Example: HTTP Server

Available Versions

Deploy

  1. Compress the project into a .zip (folders like node_modules, venv and target are removed automatically) or push it to GitHub.
  2. In the dashboard, click New Project and upload the .zip or paste the repository URL.
  3. In Build, check the runtime (Go), the main file (main.go) and the memory. Start and build commands are under Advanced settings.
  4. Add your environment variables in Environment.
  5. In Network, turn on web publishing so the app gets a *.vertraweb.app address (Pro plan or higher, 512 MB of memory). The app must listen on port 80.
  6. Review and deploy. Follow the output in the Logs tab.
The full walkthrough is in First deploy.

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.0 to accept external connections
  • Recommended memory: 256MB for simple servers
  • Dependencies are downloaded automatically via go mod download