mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	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