Hosting Golang

Links

To host an application on Container Hosting Golang, you must complete the following three steps.

1. Installing the project management utility

If your project files are in a Git repository, then installing the utility is not necessary, since you can run the project from the browser.

If you installed the conhos utility earlier, then simply proceed to the next step. If not installed, then use Instructions to install.

2. Create a configuration file

If your project files are in a Git repository, you can create a configuration file from your browser.

Configuration file for creating the Golang service in Container Hosting. More details in Configuration File.

Check the current version of the Golang container in the official Golang repository

name: my-golang-project
services:
  golang0:
    image: golang
    size: mili
    active: true
    pwd: examples/golang
    exclude:
      - vendor
    version: latest
    command: go build -o main && ./main
    ports:
      - port: 3000
        type: proxy
    environment:
      - PORT=3000

3. Launching a project in the cloud

To upload files to the cloud and run services in containers, run the command:

conhos deploy

Continue studying

Hosting Golang Mongo <<< | >>> Hosting Golang Redis