Last active
December 21, 2015 03:18
-
-
Save ozgg/6240806 to your computer and use it in GitHub Desktop.
Puma config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'pathname' | |
| environment 'production' | |
| app_root = Pathname.new('../../../../current').expand_path(__FILE__) | |
| tmp_dir = app_root.join('tmp') | |
| pids_dir = tmp_dir.join('pids') | |
| logs_dir = app_root.join('log') | |
| pidfile pids_dir.join('puma.pid').to_s | |
| state_path tmp_dir.join('puma.state').to_s | |
| bind "unix://#{tmp_dir}/puma.sock" | |
| stdout_redirect logs_dir.join('stdout.log').to_s, logs_dir.join('stderr.log').to_s, true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment