简体   繁体   English

每当capistrano部署问题

[英]Whenever-capistrano deploy issue

Using whenever gem to manage cron jobs for my Rails 3.2.13 app. 在我的Rails 3.2.13应用程序中使用每当gem来管理cron作业。 Deploying with Capistrano. 与Capistrano一起部署。

Here is what I get in the outpout: 这是我得到的支出:

/home/marcele/.rvm/gems/ruby-2.0.0-p247@models/gems/capistrano-2.15.5/lib/capistrano/configuration/loading.rb:18:in `instance': Please require this file from within a Capistrano recipe (LoadError)
from /home/marcele/.rvm/gems/ruby-2.0.0-p247@models/gems/whenever-0.8.3/lib/whenever/capistrano/recipes.rb:3:in `<top (required)>'
from /home/marcele/.rvm/gems/ruby-2.0.0-p247@models/gems/whenever-0.8.3/lib/whenever/capistrano.rb:1:in `require'
from /home/marcele/.rvm/gems/ruby-2.0.0-p247@models/gems/whenever-0.8.3/lib/whenever/capistrano.rb:1:in `<top (required)>'
from ./config/deploy.rb:62:in `require'

The deploy.rb receipe is over here (withought the heads): https://gist.github.com/Almaron/5989804 . deploy.rb收据在这里(直达头脑): https ://gist.github.com/Almaron/5989804。 It works fine if I remove lines 61 and 62 mentioning whenever. 如果我删除任何时候提到的第61和62行,效果很好。

Found the problem - not enough sleep. 发现了问题-睡眠不足。 Moved the require statement out of the namespace and everything is fine. 将require语句移出名称空间,一切正常。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM