Add Database Connection and Migration

This commit is contained in:
Samuel Lorch 2024-05-04 02:19:45 +02:00
parent 560b25419f
commit cd3d6ee256
5 changed files with 113 additions and 8 deletions

View file

@ -19,6 +19,9 @@ var templates embed.FS
//go:embed static
var static embed.FS
//go:embed migrations
var migrations embed.FS
var conf config.Config
func main() {
@ -39,7 +42,7 @@ func main() {
if *isserver {
slog.Info("Starting Server...")
server.Start(conf, templates, static)
server.Start(conf, templates, static, migrations)
} else {
slog.Info("Starting Worker...")
worker.Start(conf)