【问题标题】:Whenever-capistrano deploy issue每当-capistrano 部署问题
【发布时间】: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


    【解决方案1】:

    发现问题 - 睡眠不足。 将 require 语句移出命名空间,一切都很好。

    【讨论】:

      猜你喜欢
      • 2014-07-07
      • 2014-05-30
      • 1970-01-01
      • 1970-01-01
      • 2014-02-24
      • 2011-05-15
      • 1970-01-01
      相关资源
      最近更新 更多