package io.crashbox.ci import akka.http.scaladsl.Http import akka.stream.ActorMaterializer import java.net.URL import scala.util.{Failure, Success} object Main extends Core with Schedulers with Builders with Parsers with Source with StreamStore with HttpApi { def main(args: Array[String]): Unit = { reapDeadBuilds() val host = system.settings.config.getString("crashbox.host") val port = system.settings.config.getInt("crashbox.port") Http(system).bindAndHandle(httpApi, host, port) onComplete { case Success(_) => system.log.info(s"Listening on $host:$port") case Failure(ex) => system.log.error(ex, s"Failed to bind to $host:$port") system.terminate() } } }