1

I was looking for some info on how to deploy Akka Http app to Azure. Azure supports Java Web Apps, but I assume it does only for apps that run in TomCat or alike. But Akka Http is a standalone application - is there any support for that and in any case, how should I proceed with it?

I am aware of sbt-native-packager that can produce various installable formats, but seeing how easy it is to deploy .NET app from Visual Studio, I would love to see a simpler way for Java as well.

eddyP23
  • 6,420
  • 7
  • 49
  • 87

1 Answers1

1

Based on my understanding, your app using Akka Http is a standalone jar file which need to be deployed on Azure WebApps. Please refer to the section Application configuration Examples of the offical tutorial Upload a custom Java web app to Azure to create a web.xml file in the path wwwroot to deploy your app like these samples Jetty or Springboot.

Peter Pan
  • 23,476
  • 4
  • 25
  • 43
  • I don't thinks Jetty or Springboot is an answer here. Please see this answer: https://stackoverflow.com/a/35940867/5018962 – eddyP23 Aug 08 '17 at 07:39
  • @eddyP23 Following the sample of `Jetty` or `Springboot` to configure a jar file as a runnable server on Azure WebApps. You need to change the bind port of akka http with the code `sys.env("HTTP_PLATFORM_PORT")` which is dispatched automatically by Azure, not customized. – Peter Pan Aug 08 '17 at 08:23