diff --git a/api/src/main/scala/Server.scala b/api/src/main/scala/Server.scala index 1cfb59d..95b10fb 100644 --- a/api/src/main/scala/Server.scala +++ b/api/src/main/scala/Server.scala @@ -9,19 +9,23 @@ import scala.concurrent.duration.Duration object Server { def run() = - implicit val system = ActorSystem(Behaviors.empty, "my-system") - implicit val executionContext = system.executionContext - val keepAlive = Promise[Unit].future - - val host = "0.0.0.0" - val port = 8080 - - val bindingFuture = Http() - .newServerAt(host, port) - .bind(Routes.route) - + while (true) { + println("Hello, world!") + Thread.sleep(1000) + } +// implicit val system = ActorSystem(Behaviors.empty, "my-system") +// implicit val executionContext = system.executionContext +// val keepAlive = Promise[Unit].future +// +// val host = "0.0.0.0" +// val port = 8080 +// +// val bindingFuture = Http() +// .newServerAt(host, port) +// .bind(Routes.route) +// // Database.test() - - Await.result(keepAlive, Duration.Inf) +// +// Await.result(keepAlive, Duration.Inf) }