Re: [Rails] Gemfile.lock file management
On 6 February 2012 15:07, Mickael Gerard <mikarun@gmail.com> wrote:
> Hi,
>
> I would like to know what is the best way to manage Gemfile.lock file.
>
> I read that the Gemfile.lock should be check in version control.
>
> The fact is that commiting the generated Gemfile.lock will install the
> development and test gems on the production platform.
>
> Should I have to run
> $> bundle install --without development test
> before commiting the Gemfile.lock?
No need, that will not change the Gemfile.lock contents assuming you
have previously run "bundle install". You should run it with
--without development test on your production machine after checking
out from your VCS, to install the required gems excluding those for
development and test.
Colin
--
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@googlegroups.com.
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.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home