fix: always load ENVs from files first as soon as server starts (#18247)

This is a regression from #18231, however reading from ENV files
must happen well before any parsing logic is invoked.
This commit is contained in:
Harshavardhana
2023-10-15 21:13:43 -07:00
committed by GitHub
parent a2312028b9
commit edfb310a59
2 changed files with 3 additions and 2 deletions

View File

@@ -579,6 +579,9 @@ func serverMain(ctx *cli.Context) {
setDefaultProfilerRates()
// Always load ENV variables from files first.
loadEnvVarsFromFiles()
// Handle all server command args.
bootstrapTrace("serverHandleCmdArgs", func() {
serverHandleCmdArgs(ctx)