package main import ( _ "multitenantStack/routers" companydb "multitenantStack/services/companydb" "multitenantStack/services/tokenTools" "time" "github.com/astaxie/beego" "github.com/astaxie/beego/orm" _ "github.com/lib/pq" ) func init() { tokenTools.InitTokenToolsService() companydb.InitCompanyDBService() orm.DefaultTimeLoc = time.UTC if beego.BConfig.RunMode == "dev" { beego.BConfig.WebConfig.DirectoryIndex = true beego.BConfig.WebConfig.StaticDir["/swagger"] = "swagger" orm.Debug = true } } func main() { beego.Run() }