4
4

More than 5 years have passed since last update.

アプリケーションごとにGemを管理

Last updated at Posted at 2013-03-22

bundle installを実行すると、通常はシステムやrvmやrbenvで指定された標準の位置にインストールされる。

アプリゲーションごとにgemを管理したければ、こんな風にすればok。

$ bundle install --path vendor/bundle/

bundle execを毎回打つのがめんどくさいので、.bashrcに

alias be='bundle exec'

ついでに、.bash_profileで.bashrcを読み込む

source .bashrc

参照

Bundler再履修: bundle execって何? gemはどこに入るの?
bundle installするときはpathを指定しよう
めんどくさい bundle exec を省略する方法
.bashrc が反映されない件

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