mirror of
https://codeberg.org/pluja/kycnot.me
synced 2025-03-29 20:37:58 -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/mattn/go-sqlite3"
|
||||||
"github.com/rs/zerolog/log"
|
"github.com/rs/zerolog/log"
|
||||||
|
|
||||||
|
"pluja.dev/kycnot.me/ent"
|
||||||
"pluja.dev/kycnot.me/ent/schema"
|
"pluja.dev/kycnot.me/ent/schema"
|
||||||
|
"pluja.dev/kycnot.me/ent/service"
|
||||||
)
|
)
|
||||||
|
|
||||||
var Client *ent.Client
|
var Client *ent.Client
|
||||||
|
11
src/main.go
11
src/main.go
@ -7,6 +7,9 @@ import (
|
|||||||
"github.com/joho/godotenv"
|
"github.com/joho/godotenv"
|
||||||
"github.com/rs/zerolog"
|
"github.com/rs/zerolog"
|
||||||
"github.com/rs/zerolog/log"
|
"github.com/rs/zerolog/log"
|
||||||
|
|
||||||
|
"pluja.dev/kycnot.me/database"
|
||||||
|
"pluja.dev/kycnot.me/server"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
@ -55,11 +58,11 @@ func main() {
|
|||||||
|
|
||||||
// Database init
|
// Database init
|
||||||
log.Info().Msg("Initializing database.")
|
log.Info().Msg("Initializing database.")
|
||||||
//database.InitDb()
|
database.InitDb()
|
||||||
//defer database.Close()
|
defer database.Close()
|
||||||
|
|
||||||
// Server init
|
// Server init
|
||||||
log.Info().Msg("Initializing server.")
|
log.Info().Msg("Initializing server.")
|
||||||
//server := server.NewServer(os.Getenv("LISTEN_ADDR"))
|
server := server.NewServer(os.Getenv("LISTEN_ADDR"))
|
||||||
//server.Run()
|
server.Run()
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user