LoginSignup
6
6

More than 5 years have passed since last update.

[Rails] bundle install高速化 ~ 0から始めるRails編 ~

Posted at

[Rails] bundle install高速化

デプロイ時に毎回1からbundle installをしなきゃいけないですが,
最近ものすごく時間がかかってしまっており, 早い時でも10分はかかる状況でした。
さすがに時間かかりすぎだなと思ったので解決方法が見つかったため, ご紹介致します。
ビックリするくらい簡単なので,ぜひやってみてください

解決方法

bundler のバージョンアップ ただそれだけです。

今回しようするバージョンは 1.13.0.pre.1です。
これは2016-06-20 に変更されたものらしいです。

bundler バージョンアップ

terminal
bundle update --bundler

確認

terminal

rm Gemfile.lock

bundle install

これでローカルやデプロイ時でも
おそらく以前よりも断然に早くなっているはずです。

参考サイト

6
6
0

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
6
6