首页 > Windows开发 > 详细

【RoR win32】提高rails new时bundle install运行速度

时间:2014-01-21 17:15:51      阅读:375      评论:0      收藏:0      [点我收藏+]

在新建rails项目时,rails new老是卡在bundle install那里,少则五分钟,多则几十分。
这是因为rails new时自动会运行bundle install,而bundle install会自动去rubygems.org查找是否有更新。
但需要的gems我早安装好了,且不用更新,所以上面步骤就可省了。强烈建议rails党委取消rails new时自动查找gems更新功能!

解法很简单

rails new my_app --skip-bundle
cd my_app
bundle install --local

另外,最新版bundler速度提高不少,建议使用,也能提速

gem install bundler --pre

  

【RoR win32】提高rails new时bundle install运行速度

原文:http://www.cnblogs.com/lizunicon/p/3527506.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!