From 393a4abfb4c9f1b198f0ef211f6a6107e95d1c01 Mon Sep 17 00:00:00 2001 From: Arda Date: Sat, 17 Jul 2021 09:05:07 +0700 Subject: [PATCH] remove the mandatory of .env file --- internal/app/app.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/app/app.go b/internal/app/app.go index 4c1ce23..3a1b537 100644 --- a/internal/app/app.go +++ b/internal/app/app.go @@ -18,7 +18,7 @@ func New() (*TodoApp, error) { err := godotenv.Load() if err != nil { - log.Fatalf("Failed to load .env file \n%v", err) + log.Printf("Warning! The .env file is not found. Make sure all env variables are declared \n%v", err) } app.Repositories, err = NewRepositories()