chore: add ROOT_DIR environment variable, refactor

This commit is contained in:
yusing
2025-04-14 06:25:06 +08:00
parent 5cdbe81beb
commit d8eff90acc
12 changed files with 56 additions and 59 deletions

View File

@@ -23,7 +23,7 @@ type FileProvider struct {
func FileProviderImpl(filename string) ProviderImpl {
return &FileProvider{
fileName: filename,
path: path.Join(common.ConfigBasePath, filename),
path: path.Join(common.ConfigDir, filename),
l: logging.With().Str("type", "file").Str("name", filename).Logger(),
}
}