Comment out postgres

This commit is contained in:
Guntis Smaukstelis
2023-11-05 23:21:42 +02:00
parent 4dddcbff03
commit 526426139c
5 changed files with 32 additions and 18 deletions
+7 -4
View File
@@ -8,12 +8,15 @@ import server.Server
object Main extends IOApp {
def run(args: List[String]): IO[ExitCode] = {
println(System.getenv("DATABASE_URL"))
for {
transactor <- DBConnection.transactor[IO]
postgresService <- PostgresService.of(transactor)
_ <- postgresService.createWeatherTable // create table if it does not exists
// transactor <- DBConnection.transactor[IO]
// postgresService <- PostgresService.of(transactor)
// _ <- postgresService.createWeatherTable // create table if it does not exists
fileService <- FileService.of
dataService <- DataService.of(fileService, postgresService)
// dataService <- DataService.of(fileService, postgresService)
dataService <- DataService.of(fileService)
fetch <- FetchService.of
fileFetchScheduler <- FileFetchScheduler.of(dataService, fetch)