Missing env file is not fatal
This commit is contained in:
parent
a54b2eb847
commit
4826a810d0
|
@ -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!
|
||||||
|
|
Loading…
Reference in New Issue
Block a user