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
:update_sources: true
:benchmark: false
gem: –no-ri –no-rdoc

Related posts:

Leave a Reply

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