Once the application development is over, we have to deploy it to make it available for use by the end users, which can be done either locally or remotely. In this recipe, we will learn how we can deploy our Beego application on a local machine.
Deploying the Beego application on a local machine
How to do it...
- Because the application created by bee is in the development mode by default and it’s always a best practice to run an application in the production mode on the public facing servers, we have to change the RunMode as prod in $GOPATH/src/my-first-beego-project/conf/app.conf, as follows:
beego.RunMode = "prod"
- Include static files, configuration files, and templates as part of the Beego application...