Capistrano在Rails 3.1上部署/资产失败 [英] Capistrano deploy/assets on Rails 3.1 fails

查看:59
本文介绍了Capistrano在Rails 3.1上部署/资产失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将此行load 'deploy/assets'添加到我的Capfile中,以使用Rails 3.1部署资产.

I added the this line load 'deploy/assets' to my Capfile to deploy assets with Rails 3.1.

Capistrano进入这一行

Capistrano gets to this line

* executing "cd /home/deploy/armonia/stage/releases/20110928021521 && bundle exec rake RAILS_ENV=stage RAILS_GROUPS=assets assets:precompile"

然后失败

Could not find multi_json-1.0.3 in any of the sources,这很奇怪,因为在部署服务器上运行bundle show multi_json时找到了gem.

Could not find multi_json-1.0.3 in any of the sources which is weird because the gem is found when I run bundle show multi_json on my deployment server.

这是什么原因造成的?

推荐答案

已通过将捆绑程序更新为1.0.18来解决此问题,似乎与此

Fixed this by updating to bundler to 1.0.18, seems to be related to this https://github.com/capistrano/capistrano/issues/81

这篇关于Capistrano在Rails 3.1上部署/资产失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆