mirror of
https://github.com/tiennm99/keepalive.git
synced 2026-10-16 02:15:37 +00:00
fix(config): discover mounted yml config
This commit is contained in:
1 parent
9a69030179
commit
08da9dcb84
4 files changed
+68
-4
No files matched your search
@@ -11,10 +11,13 @@ import (
|
||||
"github.com/tiennm99/keepalive/adapter"
|
||||
)
|
||||
|
||||
const defaultConfigFile = "keepalive.yaml"
|
||||
|
||||
func main() {
|
||||
services, err := loadConfigFile(defaultConfigFile)
|
||||
configPath, err := defaultConfigFile()
|
||||
if err != nil {
|
||||
log.Fatalf("load config: %v", err)
|
||||
}
|
||||
|
||||
services, err := loadConfigFile(configPath)
|
||||
if err != nil {
|
||||
log.Fatalf("load config: %v", err)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user