Set of mina extension tasks
require 'mina_extensions/passenger'
invoke :'passenger:restart'
Tasks for managing Sidekiq workers.
require 'mina_extensions/sidekiq'
invoke :'sidekiq:quiet'
invoke :'sidekiq:stop'
invoke :'sidekiq:start'
invoke :'sidekiq:restart'
If you are using rvm, you need to invoke rvm:use
before. That's how I do it:
task :enviroment do
invoke :'rvm:use[ruby-1.9.3@mygemset]'
end
task :deploy => :environment do
#lots of stuff here
invoke :'sidekiq:restart'
end
Credits to @Mic92 https://github.com/Mic92/mina
Add this line to your application's Gemfile:
gem 'mina_extensions'
And then execute:
$ bundle
Or install it yourself as:
$ gem install mina_extensions
TODO: Write usage instructions here
- 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