Go cloud hosting # Go cloud hosting Deploy Go projects on a managed cloud platform with Git integration, automated compilation and isolated containers, without configuring a Linux host. [Get started](https://panel.deplomo.com/signup)[Go deployment guide](/guides/deploy-go) ## Go hosting on Deplomo Cloud What engineering teams need for reliable deployments. ### Direct deployment from Git Connect your repository to build and deploy automatically on each push. ### European datacenter access to packages and APIs Go builds can fetch modules from the registries configured by the project. Access to external APIs and private modules depends on network availability, credentials, and registry policies. ### Automated build for Go projects The build system can use go.mod to resolve dependencies and compile a Go application; required tools and build steps depend on the project configuration. ## Frequently asked questions about Go hosting Answers to common questions about setup, repositories and running Node.js apps: What is Go hosting? How does Go hosting differ from shared hosting? Can I deploy directly from Git? How are Go packages and modules installed? Which frameworks and libraries can I use with Go hosting? ## With Go cloud hosting, focus on your code and application architecture Go developers build compiled services that may use frameworks such as Gin, Fiber, or Echo, or communicate through gRPC. These applications run as processes and may depend on environment variables, databases, and external services. Choose a hosting environment that supports the project’s build, runtime, port, and resource requirements. A self-managed VPS gives you access to the operating system, but you are also responsible for tasks such as configuring the firewall, reverse proxy, runtime, process manager, and TLS. A managed Go hosting service can handle some of this work; available features depend on the plan. The hosting environment may let you configure application variables, ports, and resource limits. Available Go versions and infrastructure management depend on the service and package. ### Why choose Go hosting on Deplomo Cloud? When choosing hosting for a Go project, consider its build process, runtime, resource needs, networking, and deployment workflow. Check that the service supports the requirements of your application. - **Deploy directly from Git:** Connect GitHub or GitLab. Commits to your selected branch can trigger automatic builds and deployments. - **Builds for Go projects:** The build process can detect go.mod and compile a Go binary, depending on the project structure and configured build settings. - **Access to international package sources through European datacenters:** Go builds need access to module registries such as proxy.golang.org and repositories such as GitHub. If go get fails, inspect the build logs, configured proxy, credentials and module paths before retrying. - **Isolated compute resources:** Your app runs in an isolated Docker container with an allocated share of CPU and RAM, reducing interference from other workloads. - **Manage environment variables (.env):** Store keys, JWT tokens and database connection details as environment variables and update them without rebuilding your app. - **Live logs:** View console output, errors and system logs in the dashboard to investigate service issues. - **Custom domains with automatic SSL:** When the service and domain are available and correctly configured, SSL certificates can be issued and renewed automatically through ACME. ### Which frameworks and services can run on Go hosting? Go supports a wide range of frameworks and libraries. Confirm that your application’s build and runtime requirements are supported by the selected hosting environment. - **Web frameworks and APIs:** Frameworks such as Gin, Fiber, Echo, and Chi can be used when the application is configured for the hosting runtime. - **Microservices and gRPC:** Go-Zero and gRPC libraries can be used to build services that exchange Protocol Buffers messages. Capacity depends on the application and configured resources. - **Real-time and messaging services:** Go includes concurrency primitives, and WebSocket libraries can support chat, live dashboards, and monitoring applications. Configure resource use and connection handling for your workload. - **Bots and background workers:** Go applications can run background tasks or bots if the hosting plan supports the required process model, network access, and runtime duration. A Go application can connect to services such as PostgreSQL, MongoDB, or Redis using the configured endpoints and credentials. Check network access and package requirements before relying on an integration. ### Four steps to prepare a Go project for deployment Before deploying, check the project’s build and runtime configuration. The steps below apply when the service is available: - **Prepare go.mod and the listening port:** Include go.mod in the project and configure the server to read the PORT environment variable and listen on the address required by the hosting environment. - **Connect a Git repository:** Create an app in the Deplomo dashboard and select your Git repository. - **Set environment variables and resources:** Choose memory and CPU within the package limits, and configure required environment variables such as database credentials. - **Deploy and connect a domain:** If deployment is available, start a build using the configured project settings. Configure a domain only after confirming the service supports it and DNS is set up. ### Go hosting features for production projects For production, plan for availability, monitoring, data access, and resource limits. Check which controls are available in the selected package and configure the application accordingly. - **Health checks:** Health checks can restart a container after a crash and route traffic to healthy instances when available. Zero downtime depends on the health checks, deployment configuration and traffic routing. - **Deployments without downtime:** A new container is prepared and checked before traffic moves to it and the previous version is stopped. - **Persistent volumes:** If your Go app stores uploads or other persistent data, you can mount cloud storage at selected container paths, subject to the package and deployment options. The platform describes these disks as NVMe; performance depends on workload and configuration. - **Private networking:** Go services can connect to [cloud databases](/products/databases) using the network options available to your project. Check the database access rules and configuration before deployment. ### Go hosting, deployment zones and module access When choosing a deployment zone, consider both audience latency and the external registries or APIs your application needs. Actual response times depend on network routes, workload and third-party availability. Choose a zone near your audience and verify module downloads and API connections before production. The platform chooses an eligible datacenter within the zone; it does not guarantee a specific city or external service access. ### Which projects and teams is Go hosting suited to? Deplomo can host Node.js workloads for different teams: - **Startups and growing products:** Start with the resources you need and increase CPU and RAM as usage grows, without migrating to a new server. - **Freelancers and development teams:** Run separate customer projects in separate containers to help avoid port and dependency conflicts. Available resources depend on your package and configuration. - **Microservice and backend developers:** Build lightweight APIs with Go and tailor them to your performance needs. - **Bot and automation developers:** Run chatbots, web scraping jobs and scheduled tasks in persistent services.
| Comparison | Deplomo Go hosting | Traditional shared hosting | Unmanaged VPS |
|---|---|---|---|
| Deployment options | Connect to Git for continuous integration and deployment | Manual ZIP upload or limited tools | Configure Git, shell scripts and webhooks yourself |
| Long-running process and dedicated port | Continuous operation with dedicated RAM and port | Processes may stop and ports may be restricted | Supported when configured by the user |
| Go module registry access | Integrated Go module proxy (GOPROXY) | Depends on the shared network and its restrictions | May require manual proxy and DNS setup |
| Isolation and resource allocation | Isolated Docker containers with allocated resources | Resources shared with other sites | Isolated virtual machine resources |
| Infrastructure maintenance | Managed by the platform | Depends on the shared hosting provider | You manage the operating system and security |
| Scaling resources | Increase CPU and RAM without moving servers | Limited; plan changes may take time | May require a reboot or server migration |
| SSL certificate | Automatic issuance and renewal | May depend on commercial plugins or additional costs. | Install Certbot and configure renewal yourself |
| Billing model | Hourly, usage-based billing | May require non-refundable monthly or annual plans | Fixed monthly rental regardless of usage |