Mina tasks for handle with Sneakers.
This gem provides several mina tasks:
mina sneakers:kill # Kill sneakers
mina sneakers:phased_restart # Restart sneakers (phased restart)
mina sneakers:restart # Restart sneakers
mina sneakers:start # Start sneakers
mina sneakers:stop # Stop sneakers
Add this line to your application's Gemfile:
gem 'mina-sneakers', git: 'https://github.com/warpc/mina-sneakers', require: false
And then execute:
$ bundle
Add this to your config/deploy.rb
file:
require 'mina/sneakers'
Warning: sneakers daemon option should be true for environment which plan to deploy using mina
require 'mina/sneakers'
task :deploy do
deploy do
invoke :'git:clone'
invoke :'deploy:link_shared_paths'
...
on :launch do
...
invoke :'sneakers:phased_restart'
end
end
end
- Fork it
- 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 new Pull Request