I've spent a bit of time, probably more than should be necessary, looking for a step-by-step guide to build and deploy a Grails war to a local instance of Tomcat using IntelliJ IDEA 13.
I've seen links talking about creating a run configuration for Tomcat, creating an artifact for my Grails app, plus other bits of pieces of information but nothing that puts it all together. And I've seen nothing in the IntelliJ IDEA online documentation that describes how to do this.
Ideally, what I want is a single run / debug configuration that does this:
- Builds the war using grails war (optionally allows me to set the desired environment: dev test prod)
- Deploys the war to my local Tomcat instance
- Starts Tomcat (optionally in debug mode so that I can remote attach and debug my Grails app)
- Starts my browser of choice and points it at a URL inside my Grails app that I can configure
Can someone point me to a link that lays this out relatively simply?