Simple Rails App
- Checkout and Build v3 workspace following TOTD33. Alternatively get the latest build from Hudson
- Download JRuby from here and unzip.
- Install Rails as "jruby -S gem install rails"
- Create a new app as "jruby -S rails test -d mysql"
- Install MySQL and start as "mysqld_safe --user root"
- Create application database (in application directory) as "jruby -S rake db:create"
- Start v3 as "java -DJRUBY_HOME=<JRUBY_HOME> -jar modules//glassfish-10.0-SNAPSHOT.jar"
- Deploy the app as "asadmin deploy test"
- View the main page "http://localhost:8080/test".
The main application page should show the default Rails page instead it is redirected to localhost:8080/index.html.
|