AKKA-http deployment

Viewed 2885

This is the first time I'm working with akka-http. I wrote the following main class which starts the application:

object Main extends App with Routes with Config with Protocols {
  implicit val system: ActorSystem = ActorSystem("slickboard-system")
  implicit val executor: ExecutionContext = system.dispatcher
  implicit val materializer: ActorMaterializer = ActorMaterializer()

  override val employeeActor: ActorRef = system.actorOf(EmployeeActor.props, "employees")

  val server = Http().bindAndHandle(route, httpServerURL, httpServerPort)
}

It starts a server on localhost, but when I try to deploy it on a remote tomcat server, it is not working anymore. It is responding with a HTTP 404: not found.

I've been searching on the web for akka-http deployment, but couldn't find an answer. Someone has experience with this probleem?

Kind regards

2 Answers
Related