mina-sidekiq is a gem that adds tasks to aid in the deployment of [Sidekiq] (http://mperham.github.com/sidekiq/) using [Mina] (http://nadarei.co/mina).
gem install mina-sidekiq
require 'mina-sidekiq'
...
task :deploy => :enviroment do
deploy do
# stop accepting new workers
invoke :'sidekiq:quiet'
invoke :'git:clone'
...
to :launch do
...
invoke :'sidekiq:restart'
end
end
end
- sidekiq:stop
- sidekiq:start
- sidekiq:restart
- sidekiq:quiet
- sidekiq: Sets the path to sidekiq.
- sidekiqctl: Sets the path to sidekiqctl.
- sidekiq_timeout: Sets a upper limit of time a worker is allowed to finish, before it is killed.
- sidekiq_log: Sets the path to the log file of sidekiq
- sidekiq_pid: Sets the path to the pid file of a sidekiq worker
Copyright (c) 2013 Jörg Thalheim http://higgsboson.tk/joerg
See LICENSE for further details.