Skip to content

Binary Deployment

Before run the deployment, ensure your SERVER_HOST on configs/app.yaml is 0.0.0.0.

sh
go build ./cmd/project-name/project-name.go

That command will build project-name binary based on your OS and CPU architecture. You can deploy that binary to the server.

It could be your target deployment OS is different with your development OS. For example, your development machine is MacBook with M1 CPU, and your deployment target is Linux with AMD/Intel CPU. In that case you can add GOOS or GOARCH variable to the build command.

sh
GOOS=linux GOARCH=amd64 go build ./cmd/project-name/project-name.go

Released under the MIT License.