This commit is contained in:
Daniel Legt 2022-05-18 01:50:41 +03:00
parent 9bb1471c22
commit 473170e542
1 changed files with 7 additions and 1 deletions

View File

@ -1,6 +1,7 @@
package main
import (
"fmt"
"os"
"github.com/JustKato/FreePad/models/database"
@ -32,7 +33,12 @@ func main() {
// TODO: Sockets: https://gist.github.com/supanadit/f6de65fc5896e8bb0c4656e451387d0f
// Try and run migrations
database.MigrateMysql()
err := database.MigrateMysql()
if err != nil {
fmt.Println("Error")
fmt.Println(err)
fmt.Println("Error")
}
router.Run(":8080")