LoginSignup
438
396

More than 5 years have passed since last update.

Bundlerで並列処理??bundle installを爆速で処理する方法。

Last updated at Posted at 2013-08-09

bundler周りを調べていた時に、bundle installを爆速にする方法を発見したので記事を書きました。

Bundlerで並列処理

なんと最新版のBundler(v1.4.0.pre.1)から 並列処理 が出来る様になりました!

準備はこれだけ。最新のBundlerをインストールします。

gem install bundler --pre

これで下記のコマンドで並列処理されたbundle installが実行できます。

bundle install --jobs=4

もしくは。

bundle install -j4

滅茶苦茶高速化されて、ライフチェンジング :tada:

v1.5.0からはbundle config --global jobs 4とするとデフォルトとして設定できます(http://bundler.io/v1.5/whats_new.html)

bundle installのドキュメントはこちら(GitHub)

注意!

@take からコメントがあり

ちなみに pre1 だと後方互換性が保たれてないので pre2 を入れることをオススメします。

ref: https://github.com/bundler/bundler/issues/2600

とのこと。ご注意ください!

438
396
5

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
438
396