Skip to content

Commit fdbcdc1

Browse files
committed
fix ?
1 parent dec1454 commit fdbcdc1

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ ARG TARGETARCH
1313

1414
WORKDIR /app
1515

16-
COPY /app/config ./config
16+
COPY ./config .
1717

1818
COPY dist/${TARGETOS}/${TARGETARCH}/app .
1919

utils/config/config.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,21 @@ func LoadIntoENV() {
6060
}
6161

6262
func Load() {
63+
log.Debug("Loading Config ", ENV.DEFAULTS_PATH)
64+
6365
LoadFile(ENV.DEFAULTS_PATH, yaml.Parser())
66+
67+
log.Debug("Loading Config ", ENV.CONFIG_PATH)
6468
LoadFile(ENV.CONFIG_PATH, yaml.Parser())
6569

70+
log.Debug("Loading DotEnv")
6671
LoadDotEnv()
6772

6873
normalizeKeys()
6974

7075
LoadIntoENV()
76+
77+
log.Info("Finished Loading Configuration")
7178
}
7279

7380
func LoadFile(path string, parser koanf.Parser) (*file.File) {

0 commit comments

Comments
 (0)