run-app
目的 Purpose
Runs a Grails application in an embedded servlet containerThis target is not intended to be used for application deployment. There are many optimizations implemented when generating a WAR file for deployment that are not available torun-appsincerun-appis optimized for developer productivity, not performance.
使用例 Examples
grails run-app grails run-app -https // with HTTPS grails test run-app grails -Dserver.port=8090 -Denable.jndi=true -Ddisable.auto.recompile=true run-app
詳細 Description
使用方法: Usage:
grails [env]* run-app
Arguments:
https- Start an HTTPS server (on port 8443 by default) alongside the main server. Just to be clear, the application will be accessible via HTTPS and HTTP.
disable.auto.recompile- Disables auto-recompilation of Java sources, which can be processor intensive (defaults tofalse)recompile.frequency- Specifies how frequently (in seconds) Grails checks for changes to Java and Groovy sources in your project (defaults to 3).grails.server.port.http/server.port- Specifies the HTTP port to run the server on (defaults to 8080)grails.server.port.https- Specifies the HTTPS port to run the server on (defaults to 8443)grails.server.host/server.host- Specifies the host name to run the server on (defaults to localhost)
Fired Events:
StatusFinal- When the container has been startedStatusUpdate- When the container is reloading
grails uninstall-plugin tomcat grails install-plugin jetty

