Add Database Connection and Migration
This commit is contained in:
parent
560b25419f
commit
cd3d6ee256
5 changed files with 113 additions and 8 deletions
5
main.go
5
main.go
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue