Delayed job wont start using Capistrano

前端 未结 6 1469
醉话见心
醉话见心 2021-02-04 13:14

I cannot start delayed job process using a capistrano recipe. Here\'s the error I am getting.

/usr/local/lib/ruby/gems/1.9.1/gems/delayed_job-2.1.1/lib/delayed/         


        
6条回答
  •  醉酒成梦
    2021-02-04 13:43

    Add the creation of this directory before

    after "deploy:restart", "delayed_job:start"
    task :start, :roles => :app do  
      run "mkdir #{current_path}/tmp/pids"
      run "cd #{current_path}; RAILS_ENV=#{rails_env} script/delayed_job -n 2 start"
    end
    

提交回复
热议问题