Automatically generate the .env file if it is not there
This commit is contained in:
+2
-9
@@ -12,15 +12,8 @@ func main() {
|
||||
GlobalI18n = GlobalI18nImplementation{}
|
||||
|
||||
environment := env.LoadEnvironment()
|
||||
|
||||
db, err := CreatePostgresConnpool(environment.DatabaseUrl)
|
||||
if err != nil {
|
||||
Error("Failed to create database connection:", err)
|
||||
panic(err)
|
||||
}
|
||||
defer db.Close()
|
||||
|
||||
Debug(environment)
|
||||
Debug("starting white label app on port 8090")
|
||||
handler := routes.CreateApi(db)
|
||||
handler := routes.CreateApi()
|
||||
log.Fatal(http.ListenAndServe(":8090", handler))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user