Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Stop asking for password when installing gems

Whenever I bundle my rails 3.2 gems, it asks me for my password:

Enter your password to install the bundled RubyGems to your system

This gets really annoying, especially when bundling several times in one project. However, when I set the gem directory to world-readable, it always gives me a warning when executing any (!) rails command. This is even more annoying, of course.

How can I turn this off?

like image 559
weltschmerz Avatar asked Dec 04 '22 12:12

weltschmerz


1 Answers

# install gem with the specified path
bundle install --path vendor/bundle
like image 166
jasonhao Avatar answered Dec 07 '22 01:12

jasonhao