I'm using Ruby 2.1 and Rails 4.1 on Windows 7. Whenever I run bundle install, all gems are installed in the system path c:/Ruby21/lib/ruby/gems/2.1.0/gems/. I also found the vendor directory in my project.
Coming from PHP composer and node.js npm background, all dependencies should be locally installed in the project vendor folder or node_modules folder. So, my questions are:
- Should I install gems in the system path or
vendor/bundle? - If all gems or some gems should be installed in the system path, how could it affect the production environment where I may not have shell access?
- Should all gems or specific gems be installed in
vendor/bundle? - How can I install gems in
vendor/bundle?