4
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

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

4
Last updated at Posted at 2013-03-22

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

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

$ bundle install --path vendor/bundle/

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

.bashrc
alias be='bundle exec'

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

.bash_profile
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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?