2019.01.26
Gemのインストール先や、Nokogiriのインストールオプションなどを確認するときに便利。
$ bundle config
Settings are listed in order of priority. The top value will be used.
jobs
Set for the current user (/root/.bundle/config): "4"
path
Set via BUNDLE_PATH: "/usr/local/bundle"
# ダウンロード先を「vendor/bundle」に設定
$ bundle config path vendor/bundle
# インストール実行
$ bundle install
# 並列実行数を「4」に設定
$ bundle config jobs 4
# インストール実行
$ bundle install
$ bundle config build.nokogiri --use-system-libraries
$ bundle
のデフォルトのオプションがinstall
なので、$ bundle
と$ bundle install
は同じ。
(Ruby on Rails始めたての頃はたったこれだけで「bundleなのかbundle installなのかどっちなの?!?!」という感じで困った...)