diff options
Diffstat (limited to 'cmd/web.go')
-rw-r--r-- | cmd/web.go | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -55,7 +55,7 @@ and it takes care of all the other things for you`, Action: runWeb, Flags: []cli.Flag{ cli.StringFlag{"port, p", "3000", "Temporary port number to prevent conflict", ""}, - cli.StringFlag{"config, c", "custom/conf/app.ini", "Configuration file", ""}, + cli.StringFlag{"config, c", "custom/conf/app.ini", "Custom configuration file path", ""}, }, } @@ -166,11 +166,12 @@ func newMacaron() *macaron.Macaron { } func runWeb(ctx *cli.Context) { + checkVersion() + if ctx.IsSet("config") { setting.CustomConf = ctx.String("config") } routers.GlobalInit() - checkVersion() m := newMacaron() |