Its just there so you can still run the app under regular C ruby if you want. If you are fully committing to jruby then you dont need it.
On Fri, Jun 10, 2011 at 5:56 PM, Chris McCann <[email protected]> wrote: > John, > > Thanks so much. One question: why the 'platforms' switch in the Gemfile? > > Chris > > On Jun 10, 2011, at 4:59 PM, [email protected] wrote: > > Today's Topic Summary > > Group: <http://groups.google.com/group/sdruby/topics> > http://groups.google.com/group/sdruby/topics > > - Rails and a dose of JRuby <#1307c339bf324f7d_group_thread_0> [1 > Update] > > Topic: Rails and a dose of > JRuby<http://groups.google.com/group/sdruby/t/61fa6f573fb519f5> > > John Lynch <[email protected]> Jun 10 01:17PM -0700 > ^<#1307c339bf324f7d_digest_top> > > Getting started with Jruby is easy: > > Install jruby via rvm: "rvm install jruby; rvm use jruby" > > We have something like this in the Gemfile for our app: > > platforms :jruby do > gem 'activerecord-jdbc-adapter' > gem 'jdbc-mysql' > gem 'jruby-openssl' > end > > platforms :ruby do > gem 'mysql2' > end > > then you just "bundle install" and "gem install trinidad", and run > "trinidad > -t" and its just like running "rails server". (The -t param tells jruby > to > use multithreaded mode, with only one copy of the app handling requests > via > multiple threads. If some aspect of your app is not threadsafe > (doubtful > these days), leave off the -t and it will start up multiple instances > of the > app a la Mongrel). > > We have found that if you give it enough RAM (like anything related to > Java) > the performance is great, on par with Passenger. > > As for downsides, we have bumped our knees on some rough edges, no > doubt > about that, but you trade that time and effort off against the time > saved by > not having to write your own spreadsheet editor and you will most > likely > come out way ahead in the end. > > > Regards, > > John Lynch > Rigel Group, LLC > <[email protected]>[email protected] > Mobile: 760-515-2653 > Skype: johnthethird > > > > > > > > > > -- > SD Ruby mailing list > <[email protected]>[email protected] > <http://groups.google.com/group/sdruby> > http://groups.google.com/group/sdruby > > -- > SD Ruby mailing list > [email protected] > http://groups.google.com/group/sdruby -- SD Ruby mailing list [email protected] http://groups.google.com/group/sdruby
