From d3ad4b0719d342274c139453a0eb9ae366cb8989 Mon Sep 17 00:00:00 2001 From: Braeden Sowinski Date: Wed, 14 Jun 2023 10:39:55 -0700 Subject: [PATCH] .env use full cwd --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 887083a..f1bd2d2 100644 --- a/main.go +++ b/main.go @@ -59,7 +59,7 @@ func main() { path, _ := os.Getwd() // Load environment variables - godotenv.Load(fmt.Sprintf("%s/.env", path)) + godotenv.Load(filepath.Join(path, ".env")) var mongoURI string = os.Getenv("mongoURI") var database_string string = os.Getenv("databases") var github string = os.Getenv("github")