Rails bundler doesn't install gems inside a group

后端 未结 6 2212
面向向阳花
面向向阳花 2020-12-23 08:51

I have several gems including ruby-debug in a bundler group called :development. When I run the bundle command, these gems are ignored and it only installs the gems that are

6条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-23 09:41

    If you are using rails, there will be a file config written to a hidden dir called .bundle in your rails root directory:

    .bundle/config
    

    This file, in my case, held exactly the without settings.

    So I just deleted the .bundle directory:

    rm .bundle -r
    

    After that:

    bundle install worked again as expected.

    Using: bundler (1.5.2)
    

提交回复
热议问题