Watch config files and hot reload

This commit is contained in:
Jon Staab
2025-09-26 16:37:50 -07:00
parent 07a5a07583
commit 7eb6d22362
6 changed files with 95 additions and 28 deletions
+1 -1
View File
@@ -49,7 +49,7 @@ type Config struct {
}
func LoadConfig(hostname string) (*Config, error) {
path := filepath.Join("configs", hostname)
path := filepath.Join("config", hostname)
var config Config
if _, err := toml.DecodeFile(path, &config); err != nil {