Ruby Tips 9: Install Gem Without RDoc/RI on Production

Balaji D Loganathan

11 sec read

Often we want to avoid installing rdoc and ri on production/staging servers.
Simply create .gemrc file in your home directory and add gem: –no-ri –no-rdoc

You can also add few more things like
[source]
:update_sources: true
:sources:
– http://gems.rubyforge.org/
– http://gems.github.com
:benchmark: false
gem: –no-ri –no-rdoc
[/source]

Related posts:

Leave a Reply

Your email address will not be published. Required fields are marked *