...
|
...
|
@@ -3,6 +3,7 @@ package main |
|
|
import (
|
|
|
"oppmg/common"
|
|
|
_ "oppmg/routers"
|
|
|
"time"
|
|
|
|
|
|
"oppmg/common/config"
|
|
|
"oppmg/common/log"
|
...
|
...
|
@@ -20,11 +21,7 @@ func init() { |
|
|
}
|
|
|
|
|
|
func main() {
|
|
|
// orm.Debug = true
|
|
|
// if beego.BConfig.RunMode == "dev" {
|
|
|
// beego.BConfig.WebConfig.DirectoryIndex = true
|
|
|
// beego.BConfig.WebConfig.StaticDir["/swagger"] = "swagger"
|
|
|
// }
|
|
|
log.Debug("应用启动")
|
|
|
|
|
|
log.Debug("%s 应用启动", time.Now().String())
|
|
|
beego.Run()
|
|
|
} |
...
|
...
|
|