dont panic if no .env
This commit is contained in:
@@ -21,7 +21,7 @@ func init() {
|
|||||||
err := godotenv.Load(".env")
|
err := godotenv.Load(".env")
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal("Error loading .env file")
|
log.Println("Error loading .env file")
|
||||||
}
|
}
|
||||||
|
|
||||||
if os.Getenv("DEV") == "True" {
|
if os.Getenv("DEV") == "True" {
|
||||||
|
|||||||
Reference in New Issue
Block a user