This commit is contained in:
Unknown 2014-04-08 12:41:33 -04:00
parent 22feddf804
commit 115a349131
9 changed files with 30 additions and 14 deletions

View file

@ -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
}