Add this line to your application's Gemfile:
gem 'capistrano-puma', github: "seuros/capistrano-puma"
And then execute:
$ bundle
# Capfile
require 'capistrano/puma'
require 'capistrano/puma/jungle' #if you need the jungle tasks
Configurable options, shown here with defaults:
set :puma_state, "#{shared_path}/tmp/pids/puma.state"
set :puma_pid, "#{shared_path}/tmp/pids/puma.pid"
set :puma_bind, "unix://#{shared_path}/tmp/sockets/puma.sock"
set :puma_conf, "#{shared_path}/config/puma.rb"
set :puma_access_log, "#{shared_path}/log/puma_error.log"
set :puma_error_log, "#{shared_path}/log/puma_access.log"
set :puma_role, :app
set :puma_env, fetch(:rack_env, fetch(:rails_env, 'production'))
set :puma_threads, [0, 16]
set :puma_workers, 0
For RVM users, it is advisable to set in your deploy.rb for now :
set :puma_cmd, "#{fetch(:bundle_cmd, 'bundle')} exec puma"
set :pumactl_cmd, "#{fetch(:bundle_cmd, 'bundle')} exec pumactl"
- 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