本文介绍了每当Gem无法运行“ bundle exec”时,正确地在Capistrano的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在使用Capistrano将Everyever gem部署到生产环境时遇到问题。
I'm having problems deploying the Whenever gem to my production environment using Capistrano.
问题源于 c都无法正常工作。
And I'm thinking that it actually may have something to do with paths related to RVM. At any rate, the bundle exec whenever isn't working.
有什么想法吗?
推荐答案
原来有两个问题,都需要解决:
It turns out there were a couple problems, both of which needed addressing:
- 每当〜> 0.8引入了Capistrano角色的错误
- 每当有cap任务在bundle:install之前触发(在上面的代码中已确认)
在此处查看问题:和此处:
See issues here: https://github.com/javan/whenever/issues/275 and here: https://github.com/javan/whenever/issues/269
要解决此问题,您很可能需要
To fix the problem, you most likely need to
- 更新服务器上的捆绑程序(-v 1.2.3)
- 在本地更新捆绑程序
- 随时更新至最新版本(-v 0.8.2)
这篇关于每当Gem无法运行“ bundle exec”时,正确地在Capistrano的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!