mirror of
https://github.com/beego/bee.git
synced 2024-11-22 05:00:54 +00:00
Update
This commit is contained in:
parent
8cbca4826e
commit
22db382cb8
2
run.go
2
run.go
@ -98,7 +98,6 @@ func runApp(cmd *Command, args []string) {
|
|||||||
|
|
||||||
// loadConfig loads customized configuration.
|
// loadConfig loads customized configuration.
|
||||||
func loadConfig() error {
|
func loadConfig() error {
|
||||||
fmt.Println("[INFO] Detect bee.json")
|
|
||||||
f, err := os.Open("bee.json")
|
f, err := os.Open("bee.json")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
// Use default.
|
// Use default.
|
||||||
@ -108,6 +107,7 @@ func loadConfig() error {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
defer f.Close()
|
defer f.Close()
|
||||||
|
fmt.Println("[INFO] Detected bee.json")
|
||||||
d := json.NewDecoder(f)
|
d := json.NewDecoder(f)
|
||||||
err = d.Decode(&conf)
|
err = d.Decode(&conf)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user