commit | 3c58d0d0bf5c78e9188c7c945454f5271842d63e | [log] [tgz] |
---|---|---|
author | Akron <nils@diewald-online.de> | Mon Jan 02 13:35:41 2023 +0100 |
committer | Akron <nils@diewald-online.de> | Mon Jan 02 13:35:41 2023 +0100 |
tree | 9851df8768c4ed5363bcb15fa75100f9797c3c30 | |
parent | 03dc6aeb49e0e9b4aeebc3c685bfb0494bf0758f [diff] |
Inform in case no .env is defined Change-Id: I56f765f7d55733692a401399a9f41dee9bcda30a
diff --git a/service.go b/service.go index 6c332e3..adfd228 100644 --- a/service.go +++ b/service.go
@@ -136,7 +136,9 @@ } func main() { - godotenv.Load() + if godotenv.Load() != nil { + log.Println(".env file not loaded.") + } initDB("db") defer closeDB() @@ -185,7 +187,7 @@ } r := setupRouter() - port := os.Getenv("PORT") + port := os.Getenv("KORAP_EXTERNAL_PROVIDER_PORT") if port == "" { port = "5722" }