zerops:
- setup: www
# ==== how to build your application ====
build:
# what technologies should the build
# container be based on (can be an array)
base: go@1
# build your application
buildCommands:
- go build -o ./build/server ./cmd/app/main.go
# select which files / folders to deploy
# after the build successfully finished
deployFiles:
- ./build/server
- ./assets/css/app.css
# ==== how to run your application ====
run:
# what technology should the runtime
# container be based on, can be extended
# in `run.prepareCommands` using
# `sudo zsc install nodejs@20`
base: go@1
# what ports your app listens on
# and whether it supports http traffic
ports:
- port: 3000
httpSupport: true
# how to start your application
start: ./server
zerops:
- setup: www
# ==== how to build your application ====
build:
# what technologies should the build
# container be based on (can be an array)
base: go@1
# build your application
buildCommands:
- go build -o ./build/server ./cmd/app/main.go
# select which files / folders to deploy
# after the build successfully finished
deployFiles:
- ./build/server
- ./assets/css/app.css
# ==== how to run your application ====
run:
# what technology should the runtime
# container be based on, can be extended
# in `run.prepareCommands` using
# `sudo zsc install nodejs@20`
base: go@1
# what ports your app listens on
# and whether it supports http traffic
ports:
- port: 3000
httpSupport: true
# how to start your application
start: ./server