The following procedure explains how to use the asadmin command to deploy the sample hello application as a directory within a GlassFish Server domain, and how to access the application from your web browser. You can also use these same instructions to deploy any Rails application to GlassFish Server.
These instructions build upon the example hello application described in Creating a Simple Rails Application.
Start the GlassFish Server domain to which you want to deploy the application:
asadmin start-domain domain-name |
Change to the directory where you created the sample application.
For example:
cd /apps/jruby-apps/hello |
Deploy the hello application with asadmin command:
as-install/bin/asadmin deploy hello |
Run the hello application using the following URL in your browser:
http://localhost:8080/hello/ |