README.md in h2ocube_rails_puma-0.0.7 vs README.md in h2ocube_rails_puma-0.1.0

- old
+ new

@@ -6,11 +6,11 @@ ## Installation Add this line to your application's Gemfile: - gem 'h2ocube_rails_puma', group: [:development, :production] + gem 'h2ocube_rails_puma' And then execute: $ bundle @@ -18,35 +18,23 @@ $ gem install h2ocube_rails_puma ## Usage - # generate config/puma.rb + # generate config/deploy/templates/puma.rb.erb rails g h2ocube_rails_puma # Capfile require 'capistrano/puma' - # deploy.rb - set :puma_rb, 'config/puma.rb' - set :puma_threads, '0:16' - set :puma_workers, '2' - -Puma specific tasks for Capistrano v3: - - cap puma:start - cap puma:stop - cap puma:restart - cap puma:phased_restart - cap puma:cold_restart - # nginx.conf upstream app { server unix:/root/app/shared/sockets/puma.sock fail_timeout=0; } server { listen 80; + listen [::]:80; server_name app.com; root /root/app/current/public; location / { if ($request_uri ~* "\.(ico|css|js|gif|jpe?g|png)\?[0-9]*$") { expires max; @@ -56,17 +44,20 @@ } location @app { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Host $http_host; proxy_set_header X-UA-Compatible IE=edge,chrome=1; + proxy_http_version 1.1; proxy_redirect off; proxy_pass http://app; } } ## Include * puma https://github.com/puma/puma +* puma_worker_killer https://github.com/schneems/puma_worker_killer +* capistrano3-puma https://github.com/seuros/capistrano-puma ## Contributing 1. Fork it 2. Create your feature branch (`git checkout -b my-new-feature`)