我正在尝试让 Capistrano 使用 Rails 4 应用程序启动/停止延迟作业。我按照这里的说明进行操作,但它显示的是 Rails 3。这就是它现在的配置方式:
部署.rb:
require 'delayed/recipes'
after "deploy:start", "delayed_job:start"
after "deploy:stop", "delayed_job:stop"
after "deploy:restart", "delayed_job:stop","delayed_job:start"
当我尝试部署时,在尝试执行RAILS_ENV=production script/delayed_job stop后出现以下错误
sh: script/delayed_job: not found