diff options
Diffstat (limited to 'crashbox-server/src/main/scala/io/crashbox/ci/Main.scala')
-rw-r--r-- | crashbox-server/src/main/scala/io/crashbox/ci/Main.scala | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/crashbox-server/src/main/scala/io/crashbox/ci/Main.scala b/crashbox-server/src/main/scala/io/crashbox/ci/Main.scala index 4961b86..74a5527 100644 --- a/crashbox-server/src/main/scala/io/crashbox/ci/Main.scala +++ b/crashbox-server/src/main/scala/io/crashbox/ci/Main.scala @@ -7,23 +7,22 @@ import akka.http.scaladsl.Http object Main extends Core with Schedulers - with Builders + with Storage + with Executors 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") - + val host = config.getString("crashbox.host") + val port = config.getInt("crashbox.port") Http(system).bindAndHandle(httpApi, host, port) onComplete { case Success(_) => - system.log.info(s"Listening on $host:$port") + log.info(s"Listening on $host:$port") case Failure(ex) => - system.log.error(ex, s"Failed to bind to $host:$port") + log.error(ex, s"Failed to bind to $host:$port") system.terminate() } } |