4.2.1 Executing the Application Class - Reference Documentation
Authors: Graeme Rocher, Peter Ledbrook, Marc Palmer, Jeff Brown, Luke Daley, Burt Beckwith, Lari Hotari
Version: 3.1.3
4.2.1 Executing the Application Class
There are several ways to execute theApplication
class, if you are using an IDE then you can simply right click on the class and run it directly from your IDE which will start your Grails application.This is also useful for debugging since you can debug directly from the IDE without having to connect a remote debugger when using the run-app --debug-jvm
command from the command line.You can also package your application into a runnable WAR file, for example:$ grails package
$ java -jar build/libs/myapp-0.1.war