models: fix XORM API break
cmd/web.go: check version after load config
This commit is contained in:
@ -166,12 +166,11 @@ func newMacaron() *macaron.Macaron {
|
||||
}
|
||||
|
||||
func runWeb(ctx *cli.Context) {
|
||||
checkVersion()
|
||||
|
||||
if ctx.IsSet("config") {
|
||||
setting.CustomConf = ctx.String("config")
|
||||
}
|
||||
routers.GlobalInit()
|
||||
checkVersion()
|
||||
|
||||
m := newMacaron()
|
||||
|
||||
|
Reference in New Issue
Block a user