Mina tasks for rpush deployment.
# Gemfile
gem 'mina-rpush', require: false
# config/deploy.rb
require 'mina/rpush'
task deploy: :environment do
deploy do
...
on :launch do
...
invoke 'rpush:restart'
end
end
end
mina rpush:restart # Restart rpush (stop + start)
mina rpush:start # Start rpush
mina rpush:stop # Stop rpush
mina rpush:push # Deliver all pending notifications
mina rpush:status # Shows status of the running Rpush instance
Thanks to the author of mina-clockwork for giving me a starting point in developing this gem.
Feel free to contribute!