Skip to content

Commit

Permalink
minor fixes to get server working, which I think were things which di…
Browse files Browse the repository at this point in the history
…sappeared in a merge anyways
  • Loading branch information
geoffjentry committed Jul 22, 2015
1 parent ef3c102 commit 57fb21f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
8 changes: 5 additions & 3 deletions src/main/resources/application.conf
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
webservice.port = 8000
webservice.interface = 0.0.0.0
instance.name = "reference"
webservice {
port = 8000
interface = 0.0.0.0
instance.name = "reference"
}

swagger {
apiDocs = "api-docs"
Expand Down
4 changes: 2 additions & 2 deletions src/main/scala/cromwell/server/CromwellServer.scala
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import scala.util.{Failure, Success}

// Note that as per the language specification, this is instantiated lazily and only used when necessary (i.e. server mode)
object CromwellServer extends DefaultWorkflowManagerSystem {
val conf = ConfigFactory.parseFile(new File("/etc/cromwell.conf"))
val conf = ConfigFactory.load()

// NOTE: Currently the this.dataAccess is passed in to this.workflowManagerActor.
// The actor could technically restart with the same instance of the dataAccess,
Expand Down Expand Up @@ -47,7 +47,7 @@ object CromwellServer extends DefaultWorkflowManagerSystem {
val webserviceConf = conf.getConfig("webservice")

import scala.concurrent.ExecutionContext.Implicits.global
(IO(Http) ? Http.Bind(service, interface = webserviceConf.getString("webservice.interface"), port = webserviceConf.getInt("webservice.port"))).onComplete {
(IO(Http) ? Http.Bind(service, interface = webserviceConf.getString("interface"), port = webserviceConf.getInt("port"))).onComplete {
case Success(Http.CommandFailed(failure)) =>
actorSystem.log.error("could not bind to port: " + failure.toString)
actorSystem.shutdown()
Expand Down

0 comments on commit 57fb21f

Please sign in to comment.