aboutsummaryrefslogtreecommitdiff
path: root/routers/install.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/install.go')
-rw-r--r--routers/install.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/routers/install.go b/routers/install.go
index 0c621e28..06acb264 100644
--- a/routers/install.go
+++ b/routers/install.go
@@ -38,12 +38,10 @@ const (
)
func checkRunMode() {
- switch setting.Cfg.Section("").Key("RUN_MODE").String() {
- case "prod":
+ if setting.ProdMode {
macaron.Env = macaron.PROD
macaron.ColorLog = false
- setting.ProdMode = true
- default:
+ } else {
git.Debug = true
}
log.Info("Run Mode: %s", strings.Title(macaron.Env))