Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ionic-framework/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby on rails 与capistrano 3和gem一起部署_Ruby On Rails_Capistrano_Capistrano3_Whenever_Whenever Capistrano - Fatal编程技术网

Ruby on rails 与capistrano 3和gem一起部署

Ruby on rails 与capistrano 3和gem一起部署,ruby-on-rails,capistrano,capistrano3,whenever,whenever-capistrano,Ruby On Rails,Capistrano,Capistrano3,Whenever,Whenever Capistrano,我正在尝试使用capistrano 3在任何时候gem部署我的应用程序 我在Capfile中添加了:require“where/capistrano”,并且: set:where_identifier,->{{fetch(:application)}}{fetch(:stage)}} 配置/deploy.rb 当我部署它时,我得到一个错误: 01 bundler: failed to load command: whenever (/home/deploy/www/laptophits/shar

我正在尝试使用
capistrano 3
在任何时候
gem部署我的应用程序

我在Capfile中添加了:
require“where/capistrano”
,并且:

set:where_identifier,->{{fetch(:application)}}{fetch(:stage)}}
配置/deploy.rb

当我部署它时,我得到一个错误:

01 bundler: failed to load command: whenever (/home/deploy/www/laptophits/shared/bundle/ruby/2.2.0/bin/whenever)

NameError: undefined local variable or method `extract' for #<Whenever::JobList:0x00000002edf6c8>
      config/schedule.rb:9:in `block in initialize'
知道如何修复吗?

关键错误在

NameError: undefined local variable or method `extract' for #<Whenever::JobList:0x00000002edf6c8>
  config/schedule.rb:9:in `block in initialize'
NameError:未定义的局部变量或方法“extract”#
config/schedule.rb:9:in'block in initialize'

config/schedule.rb
的第9行可能有代码错误。可能使用的方法是
extract
,该方法不存在于对象上或使用它的上下文中。

我忘记了rake任务名称中的引号。
NameError: undefined local variable or method `extract' for #<Whenever::JobList:0x00000002edf6c8>
  config/schedule.rb:9:in `block in initialize'