我是Grails(v 3.2.3)的新手,我想知道grails 3 WAR通常需要在服务器上运行哪些先决条件:
我是否只需要安装Tomcat和JRE,还是要进行其他安装(例如GDK和grails)?
我试图从文档中找出
http://docs.grails.org/3.2.3/guide/deployment.html#deploymentContainer
它在这里说:
Application servers
Ideally you should be able to simply drop a WAR file created by Grails into any application server and it should work straight away. However, things are rarely ever this simple. The Grails website contains a list of application servers that Grails has been tested with, along with any additional steps required to get a Grails WAR file working.
该URL protected ,即使设置了帐户,我也无法访问:https://grails.org/Deployment
我知道这可能是“minimum requirements for a grails web application to be deployed”的副本,但我希望在“错误的”网络托管商下订单之前收集有关此主题的一些官方背景。
更新:
非常感谢您的答复。到目前为止,我还发现了这些内容,因此很明显,grails WAR甚至可以作为“独立” java应用程序运行
http://docs.grails.org/3.2.3/guide/gettingStarted.html#deployingAnApplication
grails war
java -Dgrails.env=prod -jar build/libs/mywar-0.1.war
http://docs.grails.org/3.2.3/guide/gettingStarted.html#supportedJavaEEContainers
最佳答案
我将Nginx用作Ubuntu 16.04中Tomcat 7的反向代理。但是,当然,使用Java 8的Grails 3应该在安装Tomcat 7之前安装。
您可以为生产部署服务器找到this short article。
关于grails - Grails 3 WAR部署服务器先决条件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42316922/