summaryrefslogtreecommitdiffstats
path: root/modules/setting/setting.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/setting/setting.go')
-rw-r--r--modules/setting/setting.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/setting/setting.go b/modules/setting/setting.go
index 8ab4508ce5..c162c751c1 100644
--- a/modules/setting/setting.go
+++ b/modules/setting/setting.go
@@ -376,7 +376,6 @@ var (
CustomConf string
PIDFile = "/run/gitea.pid"
WritePIDFile bool
- ProdMode bool
RunMode string
RunUser string
IsWindows bool
@@ -388,6 +387,11 @@ var (
UILocation = time.Local
)
+// IsProd if it's a production mode
+func IsProd() bool {
+ return strings.EqualFold(RunMode, "prod")
+}
+
func getAppPath() (string, error) {
var appPath string
var err error