We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dec1454 commit fdbcdc1Copy full SHA for fdbcdc1
Dockerfile
@@ -13,7 +13,7 @@ ARG TARGETARCH
13
14
WORKDIR /app
15
16
-COPY /app/config ./config
+COPY ./config .
17
18
COPY dist/${TARGETOS}/${TARGETARCH}/app .
19
utils/config/config.go
@@ -60,14 +60,21 @@ func LoadIntoENV() {
60
}
61
62
func Load() {
63
+ log.Debug("Loading Config ", ENV.DEFAULTS_PATH)
64
+
65
LoadFile(ENV.DEFAULTS_PATH, yaml.Parser())
66
67
+ log.Debug("Loading Config ", ENV.CONFIG_PATH)
68
LoadFile(ENV.CONFIG_PATH, yaml.Parser())
69
70
+ log.Debug("Loading DotEnv")
71
LoadDotEnv()
72
73
normalizeKeys()
74
75
LoadIntoENV()
76
77
+ log.Info("Finished Loading Configuration")
78
79
80
func LoadFile(path string, parser koanf.Parser) (*file.File) {
0 commit comments