将我的 rails4 应用程序部署到 VPS 时出现错误。我得到的错误是
rbenv: version `2.0.0' is not installed
但是使用“ruby -v”我得到
ruby 2.0.0p0 (2013-02-24 revision 39474) [i686-linux]
在我的gemfile中我有
source 'https://rubygems.org'
ruby '2.0.0'
gem 'rails', '4.0.0'
捆绑安装配方后出现此错误
2013-08-04 23:23:56 executing `bundle:install'
* executing "cd /home/yasinishyn/apps/kaiser/releases/20130804202355 && bundle install --gemfile /home/yasinishyn/apps/kaiser/releases/20130804202355/Gemfile --path /home/yasinishyn/apps/kaiser/shared/bundle --deployment --quiet --without development test"
servers: ["xxx.xxx.xxx.xxx"]
[198.211.125.183] executing command
** [out :: xxx.xxx.xxx.xxx] rbenv: version `2.0.0' is not installed
** [out :: xxx.xxx.xxx.xxx]
command finished in 355ms
*** [deploy:update_code] rolling back
* executing "rm -rf /home/yasinishyn/apps/kaiser/releases/20130804202355; true"
servers: ["xxx.xxx.xxx.xxx"]
[xxx.xxx.xxx.xxx] executing command
command finished in 342ms
请帮我弄清楚这一点。