Capistrano deploy/assets on Rails 3.1 fails

南笙酒味 提交于 2019-12-23 10:08:36

问题


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

Capistrano gets to this line

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

then fails with

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.

What causes this?


回答1:


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



来源:https://stackoverflow.com/questions/7577731/capistrano-deploy-assets-on-rails-3-1-fails

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!