Skip to content

Commit

Permalink
Standard puma config variables and port configuration (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
tjwp committed Jun 20, 2016
1 parent 951df41 commit bb74507
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .foreman
@@ -0,0 +1 @@
port: 21000
4 changes: 2 additions & 2 deletions config/puma.rb
@@ -1,8 +1,8 @@
# Simple configuration based on
# https://devcenter.heroku.com/articles/deploying-rails-applications-with-the-puma-web-server

workers Integer(ENV['WEB_CONCURRENCY'] || 2)
threads_count = Integer(ENV['RAILS_MAX_THREADS'] || 5)
workers Integer(ENV['WEB_WORKER_PROCESSES'] || 2)
threads_count = Integer(ENV['MAX_WEB_THREADS'] || 5)
threads threads_count, threads_count

preload_app!
Expand Down

0 comments on commit bb74507

Please sign in to comment.