mirror of
https://github.com/go-gitea/gitea
synced 2024-11-15 14:31:41 +01:00
Fix #145
This commit is contained in:
parent
816c0ed5e7
commit
07c3d497a7
1 changed files with 6 additions and 4 deletions
|
@ -316,12 +316,14 @@ func NewConfigContext() {
|
|||
}
|
||||
Cfg.BlockMode = false
|
||||
|
||||
cfgPath = filepath.Join(workDir, "custom/conf/app.ini")
|
||||
cfgPaths := []string{os.Getenv("GOGS_CONFIG"), filepath.Join(workDir, "custom/conf/app.ini")}
|
||||
for _, cfgPath := range cfgPaths {
|
||||
if com.IsFile(cfgPath) {
|
||||
if err = Cfg.AppendFiles(cfgPath); err != nil {
|
||||
qlog.Fatalf("Cannot load config file(%s): %v\n", cfgPath, err)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
AppName = Cfg.MustValue("", "APP_NAME", "Gogs: Go Git Service")
|
||||
AppLogo = Cfg.MustValue("", "APP_LOGO", "img/favicon.png")
|
||||
|
|
Loading…
Reference in a new issue