简体   繁体   English

rvm rails安装时间太长

[英]rvm rails install takes too long

I use \\curl -sSL https://get.rvm.io | bash -s stable --rails 我使用\\curl -sSL https://get.rvm.io | bash -s stable --rails \\curl -sSL https://get.rvm.io | bash -s stable --rails to quicky install the latest ruby and rails. \\curl -sSL https://get.rvm.io | bash -s stable --rails可以快速安装最新的ruby和rails。 But it takes nearly ten minutes for the command to complete and a lot of time is spent generating ri/rdoc documentation. 但是命令完成将近十分钟,并且花费大量时间来生成ri / rdoc文档。 Is there a way to skip the while documentation generation. 有没有一种方法可以跳过while文档的生成。

When a gem gets installed - as is the case when you're installing the Rails gem and all of its dependent gems - all documentation will get generated, as you know. 如您所知,当安装了gem时(与安装Rails gem及其所有从属gem时一样),将生成所有文档。 You can set the defaults for installing gems via a .gemrc file in your home directory, add: 您可以通过主目录中的.gemrc文件设置默认值来安装gems,并添加:

gem: --no-document

to the file ~/.gemrc . 到文件~/.gemrc And then all of your gems will skip doc generation. 然后,您所有的宝石都将跳过文档生成。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM