0

私の Rails 3.2.13 アプリの cron ジョブを管理するために、everyday gem を使用します。カピストラーノでデプロイ。

ここに私がアウトプットで得るものがあります:

/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行目を削除するとうまくいきます。

4

1 に答える 1

0

問題が見つかりました - 十分な睡眠がありません。名前空間からrequireステートメントを移動しましたが、すべて問題ありません。

于 2013-07-14T08:31:25.420 に答える