Skip to content

Commit e010641

Browse files
author
Andrew
authored
Merge pull request #5 from bootdotdev/patch-config-system
warn rather than bail on missing config file
2 parents 57e5fde + 6188cd2 commit e010641

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ var staticFiles embed.FS
2929
func main() {
3030
err := godotenv.Load(".env")
3131
if err != nil {
32-
log.Fatalf("Error loading .env file: %v", err)
32+
log.Printf("warning: assuming default configuration. .env unreadable: %v", err)
3333
}
3434

3535
port := os.Getenv("PORT")

0 commit comments

Comments
 (0)