HTTP no follow and offline mode
This commit is contained in:
parent
59d0e73c35
commit
62d23e9154
17 changed files with 55 additions and 75 deletions
|
@ -139,9 +139,11 @@ func Config(ctx *middleware.Context) {
|
|||
|
||||
ctx.Data["AppUrl"] = base.AppUrl
|
||||
ctx.Data["Domain"] = base.Domain
|
||||
ctx.Data["OfflineMode"] = base.OfflineMode
|
||||
ctx.Data["RunUser"] = base.RunUser
|
||||
ctx.Data["RunMode"] = strings.Title(martini.Env)
|
||||
ctx.Data["RepoRootPath"] = base.RepoRootPath
|
||||
ctx.Data["ScriptType"] = base.ScriptType
|
||||
|
||||
ctx.Data["Service"] = base.Service
|
||||
|
||||
|
|
|
@ -30,7 +30,7 @@ func checkRunMode() {
|
|||
switch base.Cfg.MustValue("", "RUN_MODE") {
|
||||
case "prod":
|
||||
martini.Env = martini.Prod
|
||||
base.IsProdMode = true
|
||||
base.ProdMode = true
|
||||
case "test":
|
||||
martini.Env = martini.Test
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue