Getting started with Go development on Upsun is really easy, there are only a few steps needed:
- Create a new project with
upsun project:create - Write the following
.upsun/config.yamlfile - 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
Comments
Please sign in to leave a comment.