Skip to content

warpc/mina-sneakers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mina Sneakers

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

Installation

Add this line to your application's Gemfile:

gem 'mina-sneakers', git: 'https://github.com/warpc/mina-sneakers', require: false

And then execute:

$ bundle

Usage

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

Example

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

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

About

Sneakers tasks for Mina

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages