Missing env file is not fatal

This commit is contained in:
Filip Johansson 2021-01-05 17:51:24 +01:00
parent a54b2eb847
commit 4826a810d0

View File

@ -36,7 +36,7 @@ func createAdminAccount(Db db.Db) {
func main() { func main() {
err := godotenv.Load() err := godotenv.Load()
if err != nil { if err != nil {
log.Fatal("Error loading .env file") log.Warn("Error loading .env file, this could be ok if the env file does not exist")
} }
// Add this line for logging filename and line number! // Add this line for logging filename and line number!