LoginSignup
38

More than 5 years have passed since last update.

rake と bundle exec rake の違い

Posted at

bundle exec rake はプロジェクトのライブラリ保存場所から読み出す
rake はrailsのライブラリ保存場所から読み出すという指示になるそうです。

で、複数のPJを利用している場合、rakeコマンドが違ったりして、毎回bundle installしてた
(めっちゃ非効率)

調べてみたら、常識的なことだったようです。
PJ単位にbundle install ができるとのことで、試してみました。

cd [PJ rootディレクトリ]
bundle install --path gems

設定した内容はここで確認
cat .bundle/config

以降はみたいな感じでやっています。
bundle exec rake XXXXX

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
38