LoginSignup
12
12

More than 5 years have passed since last update.

bundle install で毎回 --path=vendor/bundle するのが面倒なのをどうにかする

Last updated at Posted at 2016-05-04

bundle installするときにglobalなgemを汚したくないので、bundle install --path=vendor/bundleってpathを指定すると思うのですが、一度設定すると2回目以降はpathの指定が要らないこともあって、新しいプロジェクトを始めるときについつい忘れがちです。

そんな場合は、

bundle config path vendor/bundle

ってしておくと、pathの指定をユーザ定義として ~/.bundle/config に覚えてくれるので便利です。

これでいつでも

bundle

するだけでよくなりました。

余談)
どうでもいいけど、最近作ったプロジェクト全部「vender」にtypoしてたよ恥ずかしい。

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