Grails 3 WAR Deployment Server Prerequisites

256 Views Asked by At

I am new to Grails (v 3.2.3) and I was wondering about what prerequesites a grails 3 WAR will actually typically need to run on a server:

Do I only need a Tomcat and JRE installed or are there other installations like GDK and grails to be made?

I was trying to figure out from the docs http://docs.grails.org/3.2.3/guide/deployment.html#deploymentContainer

here it says:

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.

The URL is protected and I cannot access even after setting up an account: https://grails.org/Deployment

I know this might be a duplicate of "minimum requirements for a grails web application to be deployed" but I would prefer to gather some official background on this topic before placing an order at "the wrong" webhoster.

Update:

Thank you very much for your replies. By now I also found these, so it became clear that a grails WAR can even be run as a "standalone" java application

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

1

There are 1 best solutions below

0
On

I'm using Nginx as the reverse proxy for Tomcat 7 in Ubuntu 16.04. But of course, Grails 3 using Java 8, that you should install before install Tomcat 7.

You can find this short article for production deployment server.