Oracle GlassFish Server 3.0.1 Scripting Framework Guide

ProcedureTo Run a Rails Application From the GlassFish Server autodeploy Directory

As with the instructions in To Deploy a Rails Application as a Directory Using the asadmin Command, this procedure builds upon the example hello application described in Creating a Simple Rails Application.

  1. Copy the entire hello application directory to the as-install/glassfish/domains/domain-dir/autodeploy directory.

    For example:

    cp -r /apps/jruby-apps/hello glassfishv3/glassfish/domains/domain1/autodeploy
  2. Run the hello application using the following URL in your browser: