1
0
mirror of https://github.com/beego/bee.git synced 2025-07-11 08:01:01 +00:00

Rewrite configuration loading

Rewrited loadConfig() function to walk the project directory
looking for bee.json and Beefile. If no configuration file
found, it fallbacks to the default configuration. In case
of an error, a log message is printed to the console.
This commit is contained in:
Faissal Elamraoui
2016-11-03 16:41:51 +01:00
committed by Faissal Elamraoui
parent 4ff3cf5ce8
commit 440c5e967c
2 changed files with 78 additions and 27 deletions

2
run.go
View File

@ -115,7 +115,7 @@ func runApp(cmd *Command, args []string) int {
err := loadConfig()
if err != nil {
ColorLog("[ERRO] Fail to parse bee.json[ %s ]\n", err)
ColorLog("[ERRO] Failed to load configuration [ %s ]\n", err)
}
var paths []string