Created
February 27, 2017 16:13
-
-
Save kirillshevch/848d3d76705da76fe87c8e8f71af5dac to your computer and use it in GitHub Desktop.
config/puma.rb
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
| return if Rails.env.test? || Rails.env.development? rescue nil | |
| app_path = '/home/deployer/www/translations' | |
| directory "#{app_path}/current" | |
| rackup "#{app_path}/current/config.ru" | |
| daemonize true | |
| pidfile "#{app_path}/shared/tmp/pids/puma.pid" | |
| state_path "#{app_path}/shared/tmp/puma.state" | |
| workers 2 | |
| threads 6, 6 | |
| bind "unix:#{app_path}/shared/tmp/sockets/puma.sock" | |
| preload_app! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment