Skip to content

Commit 35b71aa

Browse files
committed
Fixed change to beego api for setting RunMode
Fixes #50
1 parent 10856c1 commit 35b71aa

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

routers.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ import (
2424
"github.com/bmizerany/pat"
2525
// "github.com/daryl/zeus"
2626
"github.com/dimfeld/httptreemux"
27-
"github.com/emicklei/go-restful"
2827
"github.com/gin-gonic/gin"
2928
"github.com/go-martini/martini"
3029
"github.com/go-zoo/bone"
@@ -39,11 +38,9 @@ import (
3938
possumrouter "github.com/mikespook/possum/router"
4039
possumview "github.com/mikespook/possum/view"
4140
"github.com/naoina/denco"
42-
"github.com/naoina/kocha-urlrouter"
4341
_ "github.com/naoina/kocha-urlrouter/doublearray"
4442
"github.com/pilu/traffic"
4543
"github.com/plimble/ace"
46-
"github.com/rcrowley/go-tigertonic"
4744
"github.com/revel/revel"
4845
"github.com/robfig/pathtree"
4946
"github.com/typepress/rivet"
@@ -185,7 +182,7 @@ func beegoHandlerTest(ctx *context.Context) {
185182
}
186183

187184
func initBeego() {
188-
beego.RunMode = "prod"
185+
beego.BConfig.RunMode = beego.PROD
189186
beego.BeeLogger.Close()
190187
}
191188

0 commit comments

Comments
 (0)