Specify the relative path for the configuration file

This commit is contained in:
skiffer-git 2022-11-08 11:08:27 +08:00
parent 83779a684b
commit 1f0040ceb6

View File

@ -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())
} }