将Akka HTTP部署到Azure

编程入门 行业动态 更新时间:2024-10-11 07:29:52
本文介绍了将Akka HTTP部署到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

本文发布于:2023-11-25 15:00:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1630212.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:Akka   HTTP   Azure

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!