Greetings, Is there a way to configure my rails application so that it will work with any rails version and not crap out when the hosting company arbitrarily upgrades to the next version of rails? My environment.rb file (for a deployed application) contained the following line: # Specifies gem version of Rails to use when vendor/rails is not present RAILS_GEM_VERSION = ''1.2.5'' unless defined? RAILS_GEM_VERSION This of course results in an application that will not start until the version number is corrected. Thanks, Doug -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Yes, there are two ways. Best is if you can freeze your own version so your hosts can''t kill you with unannounced upgrades. If that is not an option in your particular configuration then you can comment out the line in enviroment.rb. If you take option two be aware that upgrades may break your app in odd ways, so you''ll want to stay on top of things as new versions come out. Good Luck, Rob On Nov 28, 2007 4:19 PM, Doug Meharry <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > Greetings, > > Is there a way to configure my rails application so that it will work > with any rails version and not crap out when the hosting company > arbitrarily upgrades to the next version of rails? > > My environment.rb file (for a deployed application) contained the > following line: > > # Specifies gem version of Rails to use when vendor/rails is not present > RAILS_GEM_VERSION = ''1.2.5'' unless defined? RAILS_GEM_VERSION > > This of course results in an application that will not start until the > version number is corrected. > > Thanks, > > Doug > -- > Posted via http://www.ruby-forum.com/. > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Rob Kaufman wrote:> Yes, there are two ways. Best is if you can freeze your own version > so your hosts can''t kill you with unannounced upgrades. If that is > not an option in your particular configuration then you can comment > out the line in enviroment.rb. If you take option two be aware that > upgrades may break your app in odd ways, so you''ll want to stay on top > of things as new versions come out. > > Good Luck, > RobThanks Rob. I''ll give it a try. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On Nov 28, 2007 6:19 PM, Doug Meharry <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> Is there a way to configure my rails application so that it will work > with any rails version and not crap out when the hosting company > arbitrarily upgrades to the next version of rails?Just tell them to never run `gem cleanup`. There''s no harm in having 97698723893 versions of Rails installed since you control the version your app uses in your config.rb. -- Greg Donald http://destiney.com/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---