revert changes

This commit is contained in:
pluja 2023-10-30 22:42:11 +01:00
parent b8564a4af7
commit ccc30ffa0e
2 changed files with 9 additions and 4 deletions

View File

@ -7,7 +7,9 @@ import (
_ "github.com/mattn/go-sqlite3"
"github.com/rs/zerolog/log"
"pluja.dev/kycnot.me/ent"
"pluja.dev/kycnot.me/ent/schema"
"pluja.dev/kycnot.me/ent/service"
)
var Client *ent.Client

View File

@ -7,6 +7,9 @@ import (
"github.com/joho/godotenv"
"github.com/rs/zerolog"
"github.com/rs/zerolog/log"
"pluja.dev/kycnot.me/database"
"pluja.dev/kycnot.me/server"
)
func main() {
@ -55,11 +58,11 @@ func main() {
// Database init
log.Info().Msg("Initializing database.")
//database.InitDb()
//defer database.Close()
database.InitDb()
defer database.Close()
// Server init
log.Info().Msg("Initializing server.")
//server := server.NewServer(os.Getenv("LISTEN_ADDR"))
//server.Run()
server := server.NewServer(os.Getenv("LISTEN_ADDR"))
server.Run()
}