Jon*_*ung 43 ruby-on-rails bundler
你怎么撤消运行
bundle install --without development
Run Code Online (Sandbox Code Playgroud)
现在,我在开发组中有宝石被忽略,因为我运行了一次...(注意我已经尝试删除gemfile.lock无济于事)
Fáb*_*sta 42
更新,正确的答案是@ caspyin,在这里.
我的答案仍然是出于历史目的:
Bundler设置存储在名为的文件中
.bundle/config.您可以通过删除它或删除整个.bundle目录来重置它,如下所示:Run Code Online (Sandbox Code Playgroud)rm -rfv .bundle或者,如果你害怕
rm -rf(没关系,很多人都是):Run Code Online (Sandbox Code Playgroud)rm .bundle/config rmdir .bundle
cas*_*yin 42
列出配置
bundle config
从配置中删除值
bundle config --delete without
为配置添加值
bundle config --local without development
或者您可以手动编辑.bundle/config文件中的值.
跑
bundle install --without ""
Run Code Online (Sandbox Code Playgroud)
参考:https://github.com/carlhuda/bundler/blob/master/spec/install/gems/groups_spec.rb#L149-154
it "clears without when passed an empty list" do
bundle :install, :without => "emo"
bundle 'install --without ""'
should_be_installed "activesupport 2.3.5"
end
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
15346 次 |
| 最近记录: |