Articles in this section

Sample configuration to deploy Go on Upsun

This article has moved. Read the current version of Sample configuration to deploy Go on Upsun on Upsun Support.

Getting started with Go development on Upsun is really easy, there are only a few steps needed:

  1. Create a new project with upsun project:create
  2. Write the following .upsun/config.yaml file
  3. Deploy your project.
applications:
    app:
        type: golang:1.26
        hooks:
            build: |
                go build -o bin/app
        relationships:
            database:
        web:
            upstream:
                socket_family: tcp
                protocol: http
            commands:
                start: ./bin/app
            locations:
                /:
                    allow: false
                    passthru: true

services:
    database:
        type: mariadb:11.4

 

 

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.