June 11, 2015 0 minutes and 7 seconds read

Run a Grails 3 generated Fat Jar file in production mode

When creating a Grails WAR/JAR file using:

$ grails war

The resulting artifact can be run in production mode using:

$ java -Dgrails.env=prod -Dserver.port=9000 -jar <name-of-jar-file>.jar