mirror of
https://github.com/yusing/godoxy.git
synced 2026-03-27 03:21:09 +01:00
chore: add ROOT_DIR environment variable, refactor
This commit is contained in:
@@ -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(),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user