我想在AWS Beanstalk上部署一个简单的Scala Spray应用程序。我正在使用Spray示例Web应用程序spray-servlet-webapp。当我在本地运行它时,它工作正常sbt start
。另外,我可以使用构建jar
文件sbt compile
。但是要将其上传到AWS Elastic beantalk(Tomcat环境)时,我需要构建一个war
文件。我尝试使用sbt-web-plugin,但是sbt container:start
不起作用。可能是因为喷雾使用了它自己的spray-can
容器。那么,如何构建适当的war
文件以将其上传到Elastic Beanstalk?
根据spray-servlet doc,您应该使用xsbt-web-plugin和命令sbt package
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句