使用 mina deploy 的时候,出现找不到 Gem 的问题
$ mina deploy
-----> Using RVM environment 'ruby-2.1.0@default'
Using /home/deploy/.rvm/gems/ruby-2.1.0
-----> Creating a temporary build path
-----> Fetching new git commits
-----> Using git branch 'master'
Cloning into '.'...
done.
-----> Using this git commit
tony (e60b9b8):
> change sources
-----> Symlinking shared paths
-----> Installing gem dependencies using Bundler
Fetching gem metadata from http://rubygems.org/.........
Fetching additional metadata from http://rubygems.org/..
Using rake (10.3.2)
Using i18n (0.6.11)
Bundler::GemNotFound: Could not find json-1.8.1.gem for installation
An error occurred while installing json (1.8.1), and Bundler cannot continue.
Make sure that `gem install json -v '1.8.1'` succeeds before bundling.
! ERROR: Deploy failed.
-----> Cleaning up build
Unlinking current
OK
! Command failed.
Failed with status 19
方案出处 stackoverflow
update rvm
rvm get head
用 rvm 重新安装 ruby 2.1.0
rvm reinstall 2.1.0 --disable-binary
请问,有没有不需要重新 install 的方法,感觉是依赖关系出了问题