A few things, you can set the GOPACKAGENAME environment variable under the app details section. Simply scroll down to the environment variables section and then set the variable name to “GOPACKAGENAME” and the variable value to your app’s package name.
As for your configuration, you cannot hard code the httpport value since it is a dynamic value delivered at runtime. You have to retrieve it as seen below:
beego.BConfig.Listen.HTTPPort = port
Your MySQL settings is pointing to a localhost database which wouldn’t work. You must change the values to match your OpsCaptain settings. You can find the host, port, user and password values for your database from the App details section when you click on the name of the database from under the Apps section.