mirror of
https://codeberg.org/pluja/kycnot.me
synced 2025-03-26 19:08:09 -04:00
revert changes
This commit is contained in:
parent
b8564a4af7
commit
ccc30ffa0e
@ -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
|
||||
|
11
src/main.go
11
src/main.go
@ -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()
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user