Fix #67
This commit is contained in:
parent
22feddf804
commit
115a349131
9 changed files with 30 additions and 14 deletions
|
@ -27,6 +27,7 @@ func checkRunMode() {
|
|||
switch base.Cfg.MustValue("", "RUN_MODE") {
|
||||
case "prod":
|
||||
martini.Env = martini.Prod
|
||||
base.IsProdMode = true
|
||||
case "test":
|
||||
martini.Env = martini.Test
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue