Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Puma tasks for Mina
Ruby
Branch: master

This branch is 1 commit ahead, 35 commits behind sandelius:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib/mina
.gitignore
Gemfile
LICENSE.txt
README.md
Rakefile
mina-puma.gemspec

README.md

Mina::Puma

Puma tasks for Mina deployment.

Installation

Add this line to your application's Gemfile:

gem 'mina-puma', require: false

Usage

# config/deploy.rb
...
require 'mina/puma'

# Add pids and sockets to shared paths
set :shared_paths, %w(log tmp/pids tmp/sockets config/database.yml)

...
task :setup do
  ...
  queue! %[mkdir -p "{deploy_to}/shared/tmp/pids/"]
  queue! %[mkdir -p "{deploy_to}/shared/tmp/sockets/"]
end

task :deploy do
  deploy do
    to :prepare do
     invoke :'puma:stop'
    end

    invoke :'git:clone'
    ...

    to :launch do
     ...
     invoke :'puma:start'
    end
  end
end

Available commands:

mina puma:start
mina puma:stop
mina puma:restart

Default settings:

set :puma_pid,    "#{deploy_to}/#{shared_path}/tmp/pids/puma.pid"
set :puma_socket, "#{deploy_to}/#{shared_path}/tmp/sockets/puma.sock"

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
Something went wrong with that request. Please try again.