Mina plugin to manage delayed_jobs
Add this line to your application's Gemfile:
gem 'mina-delayed_job', require: false
And then execute:
$ bundle
Or install it yourself as:
$ gem install mina-delayed_job
Any and all of these settings can be overriden in your deploy.rb
.
Sets the path to delayed_job.
set :delayed_job, lambda { "bin/delayed_job" }
Sets the dir to the pid files of a delayed_job workers
set :delayed_job_pid_dir, 'pids'
Sets the number of delayed_job processes launched
set_default :delayed_job_processes, 1
Sets some additional parameters
set_default :delayed_job_additional_params, ''
require 'mina/delayed_job'
task :deploy do
deploy do
invoke :'git:clone'
...
to :launch do
...
invoke :'delayed_job:restart'
end
end
end
- Fork it ( https://github.com/[my-github-username]/mina-delayed_job/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request