I assume this is the most up to date documentation for running bundler install when deploying a rails application with capistrano: http://gembundler.com/v1.3/deploying.html In the documentation, it offers two methods for deploying capistrano with bundler: manual vs automatic. Which is preferred? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
Robert Walker
2013-May-15 04:04 UTC
Re: manual vs automatic bundler deployment with capistrano
John Merlino wrote in post #1108980:> I assume this is the most up to date documentation for running bundler > install when deploying a rails application with capistrano: > > http://gembundler.com/v1.3/deploying.html > > In the documentation, it offers two methods for deploying capistrano > with bundler: manual vs automatic. > > Which is preferred?I''d choose automatic. Basically just add the require line to your deploy.rb file just like it says there in the docs. -- 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 unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
On Tuesday, May 14, 2013 2:06:20 PM UTC-4, John Merlino wrote:> > I assume this is the most up to date documentation for running bundler > install when deploying a rails application with capistrano: > > http://gembundler.com/v1.3/deploying.html > > In the documentation, it offers two methods for deploying capistrano > with bundler: manual vs automatic. > > Which is preferred? >I agree that the "automatic" option is preferrable. This documentation is not great and a bit dated. If you are using Rails 3 or Rails 4, you don''t need the statement ''require bundler/capistrano'' and it may throw an error if you do. You should list the gem rvm-capistrano as a requirement for your gemfile (you only need it in development). The "manual" method they refer to really doesn''t have to be manual, but it can be. Just to be clear, bundle install --deployment is something you run ONLY on the deployment server, NEVER in development. I personally don''t like this option, but it installs preconfigured versions of your gems in vendor/bundle (within the application). It''s used where you are deploying applications to multiple, identical servers (not common). If you have a need to bundle your gems within the application and not use gems in the centrally installed local directory, bundle package, IMO, is a better option. You would then run bundle install --local to install from the package. I would only use this if necessary, such as for private gems that don''t exist in a repository. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/8857ea42-e4d7-4472-aeb2-d1b52108fde2%40googlegroups.com?hl=en-US. For more options, visit https://groups.google.com/groups/opt_out.
Robert Walker
2013-May-15 13:57 UTC
Re: manual vs automatic bundler deployment with capistrano
mike wrote in post #1109071:> On Tuesday, May 14, 2013 2:06:20 PM UTC-4, John Merlino wrote: >> > I agree that the "automatic" option is preferrable. This documentation > is > not great and a bit dated. If you are using Rails 3 or Rails 4, you > don''t > need the statement ''require bundler/capistrano'' and it may throw an > errorThanks for the clarification Mike. I wasn''t aware that document was out-of-date until I saw your reply. Good to know. -- 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 unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.