【发布时间】:2013-07-13 07:32:53
【问题描述】:
使用when gem 来管理我的Rails 3.2.13 应用程序的cron 作业。 使用 Capistrano 进行部署。
这是我在输出中得到的:
/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'
deploy.rb 收据在这里(没有头像):https://gist.github.com/Almaron/5989804。 如果我删除第 61 行和第 62 行提及的内容,它会正常工作。
【问题讨论】:
标签: ruby-on-rails-3 whenever whenever-capistrano