I do not fully understand gemfile in rails application

What is the difference between installing gem from the command line

sudo gem install gem-name

and writing your gem in the gemfile and running bundle install?

I think the problem is that I do not understand the exact purpose of the Gemfile. It still seems that this is a place where you can list all the jewels on which your application depends.

+5
source share
3 answers

Setting the gemstone through:

sudo gem install gem-name

going to install this gem system wide.

While installing them through the Gemfile is specific to your rails application (track dependencies, version, application portability, etc.).

+3
source

Whats Whys Bundler, , :

http://gembundler.com/rationale.html

, Bundler .

+2

, , , , , , , , .

, :

' , , .

http://blog.despo.me/42762318

+1

All Articles