Sha256: 930e072aa8ebd8be21c93a0db04403a2c311047ba4643ed3c327a58c1552308f
Contents?: true
Size: 1.54 KB
Versions: 3
Compression:
Stored size: 1.54 KB
Contents
# H2ocubeRailsPuma [![Gem Version](https://badge.fury.io/rb/h2ocube_rails_puma.png)](http://badge.fury.io/rb/h2ocube_rails_puma) Puma helper. ## Installation Add this line to your application's Gemfile: gem 'h2ocube_rails_puma', group: [:development, :production] And then execute: $ bundle Or install it yourself as: $ gem install h2ocube_rails_puma ## Usage # generate config/puma.rb rails g h2ocube_rails_puma # Capfile require 'capistrano/puma' 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; server_name app.com; root /root/app/current/public; location / { if ($request_uri ~* "\.(ico|css|js|gif|jpe?g|png)\?[0-9]*$") { expires max; break; } try_files $uri @app; } 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_redirect off; proxy_pass http://app; } } ## Include * puma https://github.com/puma/puma ## 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
h2ocube_rails_puma-0.0.6 | README.md |
h2ocube_rails_puma-0.0.5 | README.md |
h2ocube_rails_puma-0.0.4 | README.md |