LoginSignup
2
2

More than 5 years have passed since last update.

Capistrano で実行される bundle install で任意の Gemfile ファイルを使う

Last updated at Posted at 2016-03-31

固定のファイルを使う方法

set :bundle_gemfile, "/path/to/gemfile"

デプロイ対象の環境変数で指定した BUNDLE_GEMFILE を使う方法

set :default_shell, "bash -l" # .bash_profile で指定した場合は環境変数をロードさせる
set :bundle_gemfile,  '$BUNDLE_GEMFILE'

bundle_gemfile を解釈しているソースコード

たぶんこのあたりと予想
https://github.com/bundler/bundler/blob/3a09448d8b060f2688dbc73bfa1eb08e1bd126f3/lib/bundler/cli.rb#L20-L21

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