木兰部署在apache tomcat上
我是 Magnolia CMS 的新手。我设法通过 Magnolia CLI 建立了一个空项目并创建了一些轻型模块。我在官方文档中找不到如何将我的项目部署到在线 Tomcat 服务器。
只需手动将 magnoliaAuthor 和 magnoliaPublic 文件夹复制到服务器就足够了,还是需要创建 .war 文件?这样做的正确方法是什么?
BR
I'm new to Magnolia CMS. I managed to put up an empty project via Magnolia CLI and created some light modules. I cannot find in the official documentation on how to deploy my project to online Tomcat server.
Is it enough just to copy magnoliaAuthor and magnoliaPublic folders manually to server or do I need to create a .war file? What is the proper way of doing this?
BR
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
是的,您可以上传 war 文件或展开的文件夹。这并不重要,因为战争文件无论如何都会被 Tomcat 扩展。 以下是有关安装的一些基本信息玉兰。
或者,由于您在问题中标记了 maven,这里是有关如何使用原型构建自定义 Web 应用程序的文档。
和 这里是文档链接,向您解释有关使用 Maven 构建自定义 Web 应用程序的所有信息。
Yes, you can either upload war file or the expanded folder. It doesn't matter as war file gets expanded by Tomcat at anyway. Here's some basic info on installing Magnolia.
Alternatively, and since you tagged maven in the question, here's docu on how to build custom webapp using archetypes.
And here's link to documentation that explains you all about building custom webapp with maven.
您可以使用 Dockerfile 部署 Magnolia CMS。这是有帮助的 Dockerfile我出去。虽然我稍微调整了一下。
You can deploy Magnolia CMS using Dockerfile. This is the Dockerfile that helped me out. Although I tweaked it a little.