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'