将Akka HTTP部署到Azure [英] Deploying Akka HTTP to Azure
问题描述
我一直在寻找有关如何将Akka Http应用程序部署到Azure的信息。 Azure支持Java Web Apps,但我认为它仅适用于在TomCat或类似版本中运行的应用程序。但是Akka Http是一个独立的应用程序-是否有对此的支持,无论如何,我应该如何进行处理?
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?
我知道sbt-native-packager可以产生各种可安装的格式,但是看到从Visual Studio部署.NET应用程序有多么容易,我也希望看到Java的更简单方法。
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.
推荐答案
根据我的理解,您使用Akka Http的应用程序是一个独立的jar文件,需要部署在Azure WebApps上。请参考 应用程序配置示例
官方教程将自定义Java Web应用程序上载到Azure
在路径 wwwroot
中创建 web.xml
文件,像这些示例一样部署应用程序码头
或 Springboot
。
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
.
这篇关于将Akka HTTP部署到Azure的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!