1

This thread: Gradle / Grails application describes how to set up the grails plugin for gradle.

The command gradle grails-run-app tries to start the grails application on port 8080. What webserver is gradle using here?

Does it have an embedded one? If so how can I access / configure it?

Community
  • 1
  • 1
More Than Five
  • 9,959
  • 21
  • 77
  • 127

2 Answers2

4

It just shelling out to the same thing that Grails would have done without Gradle, as if you had run grails run-app. That depends on which server plugin you have installed. By default it's http://grails.org/plugin/tomcat, but you can switch to http://grails.org/plugin/jetty by changing the values in grails-app/conf/BuildConfig.groovy

Burt Beckwith
  • 75,342
  • 5
  • 143
  • 156
3

Gradle is nothing but a build and config tool like maven. When you use it with Grails app the dependencies are managed by it as it happens when maven is used.

When you use gradle grails-run-app it does nothing more other than running grails run-app from its own context. The same embedded Tomcat server is used by default.

dmahapatro
  • 49,365
  • 7
  • 88
  • 117
  • Where is this tomcat server embedded exactly? Can i see it on my filesystem? – More Than Five Jul 26 '13 at 22:38
  • You should be able to see it per project in `USER_HOME` [.grails\\projects\\tomcat\..] for the resources used in the server. As a whole the server runs in-memory. – dmahapatro Jul 26 '13 at 22:48