Deploy a Beego App
You can find the step-by-step deployment guide here.
Hostman uses the following environment when building a Beego 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-missingIf the project has the go.mod file, we will install the dependencies defined in it:
go mod downloadThe default command used to run the application is:
go run main.goMake sure the file that initializes the application is named main.go.