Sha256: 8ff215b78efbdb03b4acf24a30e59a7bedd29e0b266d28a08a0976043b98255c

Contents?: true

Size: 1.34 KB

Versions: 1

Compression:

Stored size: 1.34 KB

Contents

# Capistrano::Puma

## Installation

Add this line to your application's Gemfile:

    gem 'capistrano-puma', github: "seuros/capistrano-puma"

And then execute:

    $ bundle

## Usage

    # 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"



## Contributors

[molfar](https://github.com/molfar)


## 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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
capistrano3-puma-0.0.7 README.md