最終更新:2023-06-16 (金) 00:36:25 (318d)
bundle install
Top / bundle install
bundlerを使ってGemfileからgemをインストール
https://bundler.io/v2.4/man/bundle-install.1.html
gemのインストール先
デフォルト
- デフォルトではgem installと同じ場所にgemをインストール
- gem listで一覧を見れる
プロジェクト別
- --path=vendor/bundleを付けると、指定したパスの中にインストールしてくれる
- This option is deprecated in favor of the path setting.
- bundle config?
最近 (Bundler 2.1?~)
- --path=vendor/bundleは非推奨
[DEPRECATED] The `--path` flag is deprecated because it relies on being remembered across bundler invocations, which bundler will no longer do in future versions. Instead please use `bundle config set --local path 'vendor/bundle'`, and stop using this flag
- bundle config set --local path 'vendor/bundle'
昔
- bundle install --path vendor/bundleのように指定していた