Hey, I have Ruby 1.8.7 (actually REE) and 1.9.2 on my server via RVM, REE is set as the default Ruby. All my apps are configured with Capistrano and Bundler and the 1.8.7 apps deploy fine, however the 1.9.2 ones do not. The issue is that Bundler is apparently ignoring the .rvmrc in the app root that should tell it to use 1.9.2, instead the gems end up in shared/bundle/ruby/1.8 and can''t be found when the app tries to run with 1.9.2. I''ve tried changing the command being executed on the server to ''rvm 1.9.2 && bundle ....'', however it still uses 1.8.7. The only thing I''ve found to work so far is changing the default Ruby on the server to 1.9.2, then it works, but instead all the 1.8.7 apps are hosed! It seems like there is a Bundler configuration variable somewhere I need to set... Any thoughts? -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Frederick Cheung
2011-Jan-18 23:57 UTC
Re: Trouble deploying with Bundler and mixed Ruby server
On Jan 18, 10:00 pm, Ginty <stephen.f.mcgi...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hey, > > I have Ruby 1.8.7 (actually REE) and 1.9.2 on my server via RVM, REE > is set as the default Ruby. > > All my apps are configured with Capistrano and Bundler and the 1.8.7 > apps deploy fine, however the 1.9.2 ones do not. > > The issue is that Bundler is apparently ignoring the .rvmrc in the app > root that should tell it to use 1.9.2, instead the gems end up in > shared/bundle/ruby/1.8 and can''t be found when the app tries to run > with 1.9.2. > > I''ve tried changing the command being executed on the server to ''rvm > 1.9.2 && bundle ....'', however it still uses 1.8.7.did you try rvm 1.9.2 exec bundle ... Fred -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Jan 18, 11:57 pm, Frederick Cheung <frederick.che...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On Jan 18, 10:00 pm, Ginty <stephen.f.mcgi...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > Hey, > > > I have Ruby 1.8.7 (actually REE) and 1.9.2 on my server via RVM, REE > > is set as the default Ruby. > > > All my apps are configured with Capistrano and Bundler and the 1.8.7 > > apps deploy fine, however the 1.9.2 ones do not. > > > The issue is that Bundler is apparently ignoring the .rvmrc in the app > > root that should tell it to use 1.9.2, instead the gems end up in > > shared/bundle/ruby/1.8 and can''t be found when the app tries to run > > with 1.9.2. > > > I''ve tried changing the command being executed on the server to ''rvm > > 1.9.2 && bundle ....'', however it still uses 1.8.7. > > did you try > rvm 1.9.2 exec bundle ... > > FredYep that works like a charm, nice one Fred, thanks! -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.