Skip to content

Commit 35f5f11

Browse files
committed
Ignore prod case sensitive
1 parent 99f380e commit 35f5f11

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/setting/setting.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ var (
389389

390390
// IsProd if it's a production mode
391391
func IsProd() bool {
392-
return RunMode == "prod"
392+
return strings.EqualFold(RunMode, "prod")
393393
}
394394

395395
func getAppPath() (string, error) {

0 commit comments

Comments
 (0)