我正在使用 gem Paperclip,现在我想使用 capistrano 将我的应用程序部署到服务器,但是运行时cap deploy
我在最后收到以下消息:
* executing "cd /home/administrator/myApp/releases/20120506165329 && bundle install --gemfile /home/administrat
or/myApp/releases/20120506165329/Gemfile --path /home/administrator/myApp/shared/bundle --deployment --qui
et --without development test"
servers: ["myserver.com"]
[myserver.com] executing command
** [out :: myserver.com] Gem::InstallError: paperclip requires Ruby version >= 1.9.2.
** [out :: myserver.com] An error occured while installing paperclip (3.0.3), and Bundler cannot continue.
** [out :: myserver.com] Make sure that `gem install paperclip -v '3.0.3'` succeeds before bundling.
command finished in 66362ms
*** [deploy:update_code] rolling back
* executing "rm -rf /home/administrator/myApp/releases/20120506165329; true"
servers: ["myserver.com"]
[myserver.com] executing command
command finished in 66ms
failed: "sh -c 'cd /home/administrator/myApp/releases/20120506165329 && bundle install --gemfile /home/administra
tor/myApp/releases/20120506165329/Gemfile --path /home/administrator/myApp/shared/bundle --deployment --qu
iet --without development test'" on myserver.com
我检查了我的服务器中的 Ruby 版本,我得到了:
$ruby -v
ruby 1.9.2p290 (2011-07-09 revision 32553) [i686-linux]
我还通过运行在服务器中手动安装了 gem
gem install paperclip -v '3.0.3'
...
Successfully installed paperclip-3.0.3
并cap deploy
再次运行,但出现了相同的消息
如何部署我的应用程序?
提前谢谢你