diff --git a/cmd/server/main.go b/cmd/server/main.go index 7804c70..ef78d9e 100644 --- a/cmd/server/main.go +++ b/cmd/server/main.go @@ -10,7 +10,6 @@ import ( "git.pbiernat.dev/golang/rest-api-prototype/internal/app" "git.pbiernat.dev/golang/rest-api-prototype/internal/app/config" - "git.pbiernat.dev/golang/rest-api-prototype/internal/app/database" "git.pbiernat.dev/golang/rest-api-prototype/internal/app/handler" ) @@ -26,14 +25,15 @@ func main() { } httpAddr := net.JoinHostPort(config.GetEnv("SERVER_IP", defHttpIp), config.GetEnv("SERVER_PORT", defHttpPort)) - dbConnStr := config.GetEnv("DATABASE_URL", defDbUrl) + // dbConnStr := config.GetEnv("DATABASE_URL", defDbUrl) - dbc, err := database.Connect(dbConnStr) - if err != nil { - log.Panicf("Unable to connect to database: %v\n", err) - } + // dbc, err := database.Connect(dbConnStr) + // if err != nil { + // log.Panicf("Unable to connect to database: %v\n", err) + // } - env := &handler.Env{httpAddr, dbc} + // env := &handler.Env{httpAddr, dbc} + env := &handler.Env{httpAddr, nil} srv := app.NewServer(env) go srv.Start()