Upload
arun-gupta
View
2.583
Download
0
Tags:
Embed Size (px)
Citation preview
1
GlassFish and NetBeans:Develop with Pleasure, Deploy with Fun for a better Rails experience
Arun Gupta, GlassFish Guyhttp://blogs.sun.com/arunguptaSun Microsystems, Inc.
1
GlassFish – Serving your Rails applications 4
Deployment choices: Directory, WAR, Embedded
Credits: http://birdwatchersdigest.com
GlassFish – Serving your Rails applications 5
Directory-based deployment: How ?
jruby -S rails railsconf
asadmin start-domainasadmin create-jvm-options -DJRUBY_HOME=...asadmin deploy railsconf
GlassFish – Serving your Rails applications 6
Directory-based deployment: Recipes
Credits: http://blogs.sun.com/Jacobkessler/entry/capistrano_and_glassfish
GlassFish – Serving your Rails applications 8
GlassFish Gem: How ?
jruby -S gem install glassfishcd railsconfjruby -S glassfish
jruby -S rails railsconf
http://blogs.sun.com/arungupta/entry/totd_70_jruby_and_glassfish
GlassFish – Serving your Rails applications 9
GlassFish Gem: Options
jruby -S glassfish -h
-c: change the context root-e: environment-d: Runs as daemon-P: location of PID file-l: log file location-log-level: Logging level (0-7)
GlassFish – Serving your Rails applications 10
GlassFish Gem: Recipes
Credits: http://blogs.sun.com/Jacobkessler/entry/capistrano_and_glassfish_now_with
GlassFish – Serving your Rails applications 11
Not Just Rails ...
http://blogs.sun.com/arungupta/entry/totd_53_scaffold_in_merbhttp://blogs.sun.com/arungupta/entry/totd_80_sinatra_crud_application
GlassFish – Serving your Rails applications 12
And more ...
http://weblogs.java.net/blog/vivekp/archive/2009/04/plugin_any_ruby.html
GlassFish – Serving your Rails applications 13
Deployment Options
http://blogs.sun.com/arungupta/entry/totd_81_how_to_usehttp://blog.headius.com/2009/04/apache-jruby-rails-glassfish-easy.html
GlassFish – Serving your Rails applications 14
Rails on GlassFish: WAR Deployment
Credits: http://birdwatchersdigest.com
GlassFish – Serving your Rails applications 15
WAR Deployment: How ?
jruby -S gem install warblerjruby -S warble
http://blogs.sun.com/arungupta/entry/totd_73_jruby_and_glassfish
GlassFish – Serving your Rails applications 18
NetBeans: Develop with Pleasure
http://blogs.sun.com/arungupta/entry/screencast_26_develop_run_debug
GlassFish – Serving your Rails applications 19
Endorsements
Look like the best deploying option I ever
found for Rails, GREAT!
the easiest rails stack in the world, jruby 1.2rc, rails 2.3rc,
glassfish v3...
too easy to run jruby/rack/glassfish behind nginx
leading the way to simple, scalable, no-hassle hosting for
Ruby web applications....
it's true one-step deployment.
had no reliability and performance issues with
Glassfish
money is on JRuby (and Glassfish) for the long haul; if you haven't checked
out Glassfish yet, you're doing yourself a disservice!nice way to deploy and
manage my app while leaving things open for scaling