MCPcopy Create free account
hub / github.com/gogs/gogs / IsProdMode

Function IsProdMode

internal/conf/computed.go:20–22  ·  view source on GitHub ↗

IsProdMode returns true if the application is running in production mode.

()

Source from the content-addressed store, hash-verified

18
19// IsProdMode returns true if the application is running in production mode.
20func IsProdMode() bool {
21 return strings.EqualFold(App.RunMode, "prod")
22}
23
24var (
25 appPath string

Callers 7

NewConnectionFunction · 0.92
SetEngineFunction · 0.92
ErrorMethod · 0.92
failFunction · 0.92
setupFunction · 0.92
checkRunModeFunction · 0.92
TestIsProdModeFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestIsProdModeFunction · 0.68