Sun GlassFish Enterprise Server v3 Prelude Developer's Guide

ProcedureRunning a Grails Application Using run-app

  1. Go to the application directory.

    For example, go to the as-install/grails/samples/helloworld directory.

  2. Run the grails run-app command.

    The grails run-app command starts the Enterprise Server in the background and runs the application in one step. You don't need to create a WAR file or deploy your application.

  3. To test your application, point your browser to http://host:port/app-dir-name.

    For example, point to http://localhost:8080/helloworld. You should see a screen that begins, “Welcome to Grails.” Selecting the HelloController link should change the display to, “Hello World!”

See Also

For details about the grails run-app command, see the Sun GlassFish Enterprise Server v3 Prelude Reference Manual.