First workflow implementation
This commit is contained in:
+5
-4
@@ -2,13 +2,14 @@ package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"log"
|
||||
"net/http"
|
||||
"time"
|
||||
|
||||
. "git.gorlug.de/code/ersteller"
|
||||
"git.gorlug.de/code/ersteller/starter/ent"
|
||||
"git.gorlug.de/code/ersteller/starter/env"
|
||||
"git.gorlug.de/code/ersteller/starter/routes"
|
||||
"log"
|
||||
"net/http"
|
||||
"time"
|
||||
)
|
||||
|
||||
func main() {
|
||||
@@ -17,7 +18,7 @@ func main() {
|
||||
environment := env.LoadEnvironment()
|
||||
|
||||
client, err := ent.Open("sqlite3", environment.DatabaseUrl,
|
||||
ent.Log(log.Println), ent.Debug())
|
||||
ent.Log(log.Println))
|
||||
if err != nil {
|
||||
log.Fatalf("failed opening connection to sqlite: %v", err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user