grails install-plugin jetty-standalone
This plugin allows you to easily deploy an application as a standalone web application.This means, all you need todo is to run
and the application will start up and be accessible at
java -jar APPNAME.war
To compile the application as a standalone application, you need to install the plugin first and run the script
This also means you need to provide a database configuration for the standalone environment!
grails "-Dgrails.env=standalone" createStandaloneWar