I''m sure this is a really easy question to answer but it''s confounding me. Running on Windows, in my Gemfile I have gem ''rails'', ''3.0.3'' So when I sync my source out to my production environment, I''d expect to be able to run a ''bundle install'' and all the appropriate gems would get installed, including the rails gem, but this isn''t the case. All the other supporting gems are installed except the rails gem. I actually have to seperately run ''gem install rails'' to get it. I''m sure I''m doing/missing something really silly, so please enlighten me. Many 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
kaizenfury7
2011-Feb-10 01:46 UTC
Re: rails gem not installing when running ''bundle install''
What happens when you run bundle install on your production machine? What do you see when you run: bundle show rails On Feb 8, 1:43 am, Ben Perry <b3npe...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I''m sure this is a really easy question to answer but it''s confounding > me. > > Running on Windows, in my Gemfile I have > > gem ''rails'', ''3.0.3'' > > So when I sync my source out to my production environment, I''d expect > to be able to run a ''bundle install'' and all the appropriate gems > would get installed, including the rails gem, but this isn''t the case. > All the other supporting gems are installed except the rails gem. I > actually have to seperately run ''gem install rails'' to get it. > > I''m sure I''m doing/missing something really silly, so please enlighten > me. Many 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.
Ben Perry
2011-Feb-14 16:35 UTC
Re: rails gem not installing when running ''bundle install''
bundle show rails C:/system/Ruby/lib/ruby/gems/1.9.1/gems/rails-3.0.3 which is what I''d expect because its what I have specifically installed, however. When I just ran bundle install, if I''d run this command I wouldn''t have expected to see similar output as the gem wasn''t there at all. On Feb 10, 1:46 am, kaizenfury7 <kaizenfu...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> What happens when you run bundle install on your production machine? > What do you see when you run: > > bundle show rails-- 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.
Ben Perry
2011-Mar-08 14:59 UTC
Re: rails gem not installing when running ''bundle install''
To anyone who finds this. Bundler does install the rails gem, however. What bundler doesn''t do is setup the Windows shortcuts in the ruby\bin directory to allow the rails command to work. If you ''gem install rails'', those shortcuts are setup and then you can run the rails command. On Feb 14, 4:35 pm, Ben Perry <b3npe...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> bundle show rails > C:/system/Ruby/lib/ruby/gems/1.9.1/gems/rails-3.0.3 > > which is what I''d expect because its what I have specifically > installed, however. When I just ran bundle install, if I''d run this > command I wouldn''t have expected to see similar output as the gem > wasn''t there at all. > > On Feb 10, 1:46 am, kaizenfury7 <kaizenfu...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > What happens when you run bundle install on your production machine? > > What do you see when you run: > > > bundle show rails-- 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.
Frederick Cheung
2011-Mar-08 15:10 UTC
Re: rails gem not installing when running ''bundle install''
On Mar 8, 2:59 pm, Ben Perry <b3npe...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> To anyone who finds this. > > Bundler does install the rails gem, however. What bundler doesn''t do > is setup the Windows shortcuts in the ruby\bin directory to allow the > rails command to work. If you ''gem install rails'', those shortcuts are > setup and then you can run the rails command. >if rails is in your bundle then bundle exec rails should run it for you even if there is no shortcut in place Fred> On Feb 14, 4:35 pm, Ben Perry <b3npe...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > bundle show rails > > C:/system/Ruby/lib/ruby/gems/1.9.1/gems/rails-3.0.3 > > > which is what I''d expect because its what I have specifically > > installed, however. When I just ran bundle install, if I''d run this > > command I wouldn''t have expected to see similar output as the gem > > wasn''t there at all. > > > On Feb 10, 1:46 am, kaizenfury7 <kaizenfu...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > What happens when you run bundle install on your production machine? > > > What do you see when you run: > > > > bundle show rails-- 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.
Ben Perry
2011-Mar-08 17:28 UTC
Re: rails gem not installing when running ''bundle install''
Thanks for that, very useful :) On Mar 8, 3:10 pm, Frederick Cheung <frederick.che...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On Mar 8, 2:59 pm, Ben Perry <b3npe...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> To anyone who finds this. > > > Bundler does install the rails gem, however. What bundler doesn''t do > > is setup the Windows shortcuts in the ruby\bin directory to allow the > > rails command to work. If you ''gem install rails'', those shortcuts are > > setup and then you can run the rails command. > > if rails is in your bundle then > > bundle exec rails > > should run it for you even if there is no shortcut in place > > Fred > > > On Feb 14, 4:35 pm, Ben Perry <b3npe...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > bundle show rails > > > C:/system/Ruby/lib/ruby/gems/1.9.1/gems/rails-3.0.3 > > > > which is what I''d expect because its what I have specifically > > > installed, however. When I just ran bundle install, if I''d run this > > > command I wouldn''t have expected to see similar output as the gem > > > wasn''t there at all. > > > > On Feb 10, 1:46 am, kaizenfury7 <kaizenfu...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > What happens when you run bundle install on your production machine? > > > > What do you see when you run: > > > > > bundle show rails-- 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.