創建項目時條跳過bundle install
rails new project_name --skip-bundle
cd project_name
利用本地cache進行安裝,俺的機器:使用: C:\Ruby\lib\ruby\gems\1.9.1\cache中的gem進行安裝
bundle install --local
整體運行時間從5分鐘,縮短成:20秒內 :-)
備註:
[list]
[*]與bundle官網上的--local使用“vendor/cache”下得緩存描述有所差異
[*]--local正常運行的前提是你使用bundle install正常創建過其他項目,讓cache內有貨
[/list]