Skip to content

Commit

Permalink
Merge pull request #6 from LerianStudio/fix/MZ-432
Browse files Browse the repository at this point in the history
Fix/MZ-432
  • Loading branch information
MartinezAvellan authored May 20, 2024
2 parents fb96e07 + 9508657 commit e77eebb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion common/os.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,9 @@ func InitLocalEnvConfig() *LocalEnvConfig {

envName := GetenvOrDefault("ENV_NAME", "local")

fmt.Printf("ENVIRONMENT NAME \u001B[31m(%s)\u001B[0m\n", envName)

if envName == "local" {
fmt.Printf("ENVIRONMENT NAME \u001B[31m(%s)\u001B[0m\n", envName)
localEnvConfigOnce.Do(func() {
if err := godotenv.Load(); err != nil {
fmt.Println("Skipping .env file. Current env ", envName)
Expand Down
2 changes: 1 addition & 1 deletion components/ledger/.env.example
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ENV_NAME=production
#ENV_NAME=production #default local
SERVER_PORT=3000
SERVER_ADDRESS=:${SERVER_PORT}
MONGO_HOST=mongodb
Expand Down

0 comments on commit e77eebb

Please sign in to comment.