Skip to content

Commit

Permalink
add env BEEGO_CONFIG_PATH
Browse files Browse the repository at this point in the history
  • Loading branch information
liuhaogui committed Jul 29, 2020
1 parent 7a48fbb commit 15f04b8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions config.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,9 @@ func init() {
filename = os.Getenv("BEEGO_RUNMODE") + ".app.conf"
}
appConfigPath = filepath.Join(WorkPath, "conf", filename)
if configPath := os.Getenv("BEEGO_CONFIG_PATH"); configPath != "" {
appConfigPath = configPath
}
if !utils.FileExists(appConfigPath) {
appConfigPath = filepath.Join(AppPath, "conf", filename)
if !utils.FileExists(appConfigPath) {
Expand Down

0 comments on commit 15f04b8

Please sign in to comment.