简体   繁体   中英

How do I know what webserver gradle / grails is using?

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?

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

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM