d:\grailsapp for example.C:\>d: D:\>cd\grailsapp D:\grailsapp>
D:\grailsapp>grails create-app helloworld | Application created at D:\grailsapp\helloworld
cd in it, and start to work with it.grails to enter Grails mode. It might take some time for Grails to download the libraries for the first time.D:\grailsapp\helloworld>grails BUILD SUCCESSFUL | Enter a command name to run. Use TAB for completion: grails>
run-appgrails> run-app | Running application... Grails application running at http://localhost:8080 in environment: development grails>
stop-app.
There are three different versions of war file you can build, and they are the test, development, and production versions. In any case, the output war file will be located at YOUR_PROJECT_LOCATION\build\libs\YOUR_PROJECT_NAME_VERSION.war. You might deploy such war file to a Java Servlet Container such as Apache Tomcathttp://tomcat.apache.org/ or Undertowhttp://undertow.io/.
In grails mode, type test war
grails> test war . . . BUILD SUCCESSFUL Total time: 5.634 secs | Built application to build\libs using environment: test grails>
In grails mode, type dev war
grails> dev war . . . BUILD SUCCESSFUL Total time: 5.619 secs | Built application to build\libs using environment: development grails>
In grails mode, type prod war or assemble
grails> prod war . . . BUILD SUCCESSFUL Total time: 5.447 secs | Built application to build\libs using environment: production grails>