This commit is contained in:
2024-09-15 10:51:48 +10:00
parent 934c082ba1
commit 1cb36be02c
10 changed files with 203 additions and 28 deletions

View File

@@ -47,10 +47,11 @@ func main() {
os.Exit(1)
}
defer database.Close()
//defer database.DB().Close()
if err = db.Migrate(database); err != nil {
logger.Error("failed to migrate database", "error", err)
return
os.Exit(1)
}
// Prepare the task scheduler
@@ -150,4 +151,6 @@ func main() {
svr.SetPrivateKey(tlsKeyFilename)
svr.StartAndWait()
os.Exit(0)
}