You can use directory-based deployment to deploy any Rails application natively to the Sun GlassFish Enterprise Server. To natively deploy the hello application to the Enterprise Server:
Set JRUBY_HOME property value to the path to your JRuby installation as the last line in one of the following files, located in the config directory of Enterprise Server your installation:
Save the file.
Edit <AS_INSTALL>/domains/domain1/config/domain.xmland add this entry inside element:
<java-config> ... <jvm-options>-Djruby.home=<JRUBY_HOME></jvm-options> ... </java-config>
If GlassFish v3 JRuby IPS package was installed using update tool, then there is no need to set the jruby.home system property
Start the server.
Go to <JRUBY_HOME>/samples.
Deploy the hello application with asadmin command from your Enterprise Server installation:
<AS_INSTALL>/bin/asadmin deploy hello
Run the hello application using the following URL in your browser: