Specify the relative path for the configuration file

pull/351/head
skiffer-git 3 years ago
parent 83779a684b
commit 1f0040ceb6

@ -578,7 +578,7 @@ func init() {
panic(err.Error()) panic(err.Error())
} }
} else { } else {
bytes, err := ioutil.ReadFile(filepath.Join(Root, "config", "config.yaml")) bytes, err := ioutil.ReadFile("../config/config.yaml")
if err != nil { if err != nil {
panic(err.Error()) panic(err.Error())
} }

Loading…
Cancel
Save