Skip to content
This repository has been archived by the owner on Sep 2, 2022. It is now read-only.

Commit

Permalink
fixes #1989
Browse files Browse the repository at this point in the history
  • Loading branch information
mavilein committed Feb 28, 2018
1 parent 907b7bf commit 4b9c837
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,15 @@ object PrismaProdMain extends App {
val word = if (includeClusterServer) "with" else "without"
println(s"Will start $word cluster server")

val servers = List(
ApiServer(dependencies.apiSchemaBuilder),
val servers = includeClusterServer.toOption(ClusterServer("cluster")) ++ List(
WebsocketServer(dependencies),
ApiServer(dependencies.apiSchemaBuilder),
SimpleSubscriptionsServer(),
WorkerServer(dependencies)
) ++
includeClusterServer.toOption(ClusterServer("cluster"))
)

ServerExecutor(
port = port,
servers = servers: _*
servers = servers.toSeq: _*
).startBlocking()
}

0 comments on commit 4b9c837

Please sign in to comment.