You can find the step-by-step deployment guide here.
Hostman uses the following environment when building a Gin application:
Go (installed from PPA longsleep/golang-backports
)
By default, we will execute the following commands during the build:
add-apt-repository -y ppa:longsleep/golang-backports && apt-get install -y golang-go --fix-missing
If the project has the go.mod
file, we will install the dependencies defined in it:
go mod download
The default command used to run the application is:
go run main.go
Make sure the file that initializes the application is named main.go
.