second commit

This commit is contained in:
Stian Fredrik Aune
2021-05-22 12:35:27 +02:00
parent 8f648de929
commit dda774f22b
17 changed files with 186 additions and 35 deletions
+24
View File
@@ -0,0 +1,24 @@
package main
import (
"git.aiterp.net/lucifer/new-server/app/config"
"github.com/pressly/goose"
"log"
)
func main() {
db := config.DBX().DB
log.Println("Host: " + config.MySqlHost())
log.Println("Schema: " + config.MySqlUsername())
err := goose.SetDialect("mysql")
if err != nil {
log.Fatal(err)
}
err = goose.Run("up", db, "./scripts")
if err != nil {
log.Fatal(err)
}
}
+7
View File
@@ -0,0 +1,7 @@
package main
import "git.aiterp.net/lucifer/new-server/app"
func main() {
app.StartServer()
}