removed fatal env file error

This commit is contained in:
Fran Jurmanović
2021-05-25 20:22:06 +02:00
parent 155dafa829
commit 681549e730

View File

@@ -1,7 +1,6 @@
package main package main
import ( import (
"log"
"os" "os"
"wallet-api/pkg/migrate" "wallet-api/pkg/migrate"
"wallet-api/pkg/utl/db" "wallet-api/pkg/utl/db"
@@ -10,11 +9,7 @@ import (
) )
func main() { func main() {
godotenv.Load()
err := godotenv.Load()
if err != nil {
log.Fatal("Error loading .env file")
}
dbUrl := os.Getenv("DATABASE_URL") dbUrl := os.Getenv("DATABASE_URL")