我在vendor/bundle中的项目目录中安装了gems
bundle install --path vendor/bundle
Run Code Online (Sandbox Code Playgroud)
所有的宝石都得到了正确的安装.
.bundle/config文件
BUNDLE_PATH: vendor/bundle
BUNDLE_DISABLE_SHARED_GEMS: '1'
Run Code Online (Sandbox Code Playgroud)
捆绑环境
环境
Bundler 1.10.6
Rubygems 2.4.8
Ruby 2.0.0p643 (2015-02-25 revision 49749) [x86_64-linux]
GEM_HOME /home/xyz/.rvm/gems/ruby-2.0.0-p643
GEM_PATH /home/xyz/.rvm/gems/ruby-2.0.0-p643:/home/xyz/.rvm/gems/ruby-2.0.0-p643@global
RVM 1.26.11 (1.26.11)
Git 1.9.1
rubygems-bundler (1.4.4)
Run Code Online (Sandbox Code Playgroud)
Bundler设置
path
Set for your local app (/home/xyz/code/project/.bundle/config): "vendor/bundle"
Set for the current user (/home/xyz/.bundle/config): "vendor/bundle"
disable_shared_gems
Set for your local app (/home/xyz/code/project/.bundle/config): "1"
Set for the current user (/home/xyz/.bundle/config): "1"
Run Code Online (Sandbox Code Playgroud)
的Gemfile
source 'https://rubygems.org'
gem 'creek'
gem 'faraday'
gem 'faraday_middleware'
gem 'json'
gem 'logger'
gem 'mechanize' …Run Code Online (Sandbox Code Playgroud)