Is it possible to override gemfile for local development?

后端 未结 2 956
误落风尘
误落风尘 2021-01-13 02:01

We have a Gemfile currently in our git repository. However, there\'s a gem I use only locally in my environment (my team doesn\'t use it). In order to use it, I

2条回答
  •  星月不相逢
    2021-01-13 02:39

    Set BUNDLE_GEMFILE environment variable:

    BUNDLE_GEMFILE=Gemfile.local bundle exec rails c
    

    To provide a “delta” only in the Gemfile.local put require_relative 'Gemfile' on top of it (or Bundler::Dsl#eval_gemfile as suggested by @MichaelKohl in comments.)

提交回复
热议问题