Skip to main content

🦫 Golang Hosting on the SaveinCloud Platform

The SaveinCloud PaaS platform offers native support for the Go (Golang) language, allowing you to easily create, scale, and manage Go applications in isolated and highly available environments.


🛠️ Environment Creation

  1. Access New Environment on SaveinCloud. Novo Ambiente Saveincloud
  2. Select the Golang option as the application server.
  3. Add other components as needed: databases, load balancers, volumes, etc.
  4. Define:
    • Cloudlets limits (RAM/CPU)
    • Number of instances
    • Public IP (optional) Golang stack no painel de novo ambiente
info

🧱 Each instance is an isolated container automatically distributed across physical nodes. This ensures high availability of your application.


🚀 Go Application Deployment

The Deployment can be done directly via Git repository, allowing configuration of commands to be executed before and after deployment (Hooks), or compressed files containing the application.

Useful Environment Variables

  • GO_RUN: Executable binary name
  • GOPATH: Project path (default: /home/jelastic/webapp/)
  • GO_BUILD_OPTIONS: Flags for go build
  • GO_RUN_OPTIONS: Flags for go run

Automatically Performed Steps

Tela de implementação de aplicações golang

  1. Cloning the Git repository
  2. Installing dependencies with go get
  3. Building the application with go build
  4. Running with go run

The final project will be available in the directory defined by GOPATH.


🧠 Questions?

Contact SaveinCloud technical support or access our complete knowledge base.