Unicorn tasks for Mina
Clone or download
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib/mina Bump version to v2.0.0 Mar 14, 2018
test Update unicorn_test submodule Nov 3, 2016
.gitignore init Mar 23, 2014
.gitmodules Add mina-unicorn-test as a submodule Oct 22, 2016
Gemfile init Mar 23, 2014
LICENSE.txt init Mar 23, 2014
README.md Update unicorn_cmd config variable info in README Nov 22, 2015
Rakefile init Mar 23, 2014
mina-unicorn.gemspec Refactor to use mina-1.0 Oct 22, 2016



Mina tasks for handle with Unicorn

This gem provides several mina tasks:

mina unicorn:start           # Start unicorn
mina unicorn:stop            # Stop unicorn
mina unicorn:restart         # Restart unicorn (with zero-downtime)


Add this line to your application's Gemfile:

gem 'mina-unicorn', :require => false

And then execute:

$ bundle

Or install it yourself as:

$ gem install mina-unicorn


Add this to your config/deploy.rb file:

require 'mina/unicorn'

Make sure to add the following directories to :shared_paths in config/deploy.rb:

set :shared_paths, ['tmp/sockets', 'tmp/pids']

You can also set individual config variables to override default values for unicorn:

  • unicorn_env - set unicorn environment, default: depending on rails_env: development or deployment (see: Rack environment)
  • rails_env - set rails environment, default: production
  • unicorn_config - unicorn config file, default: config/unicorn.rb
  • unicorn_cmd - bundle exec unicorn, default: RAILS_ENV=production bundle exec unicorn (see: mina/rails)
  • unicorn_pid - unicorn pid file, default: tmp/pids/unicorn.pid


$ mina unicorn:start


  1. Fork it ( http://github.com/scarfacedeb/mina-unicorn/fork )
  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