From bb74507ed9b886c9ec0702c316b4d60e082fe4ff Mon Sep 17 00:00:00 2001 From: Tim Perkins Date: Mon, 20 Jun 2016 12:30:46 -0400 Subject: [PATCH] Standard puma config variables and port configuration (#18) --- .foreman | 1 + config/puma.rb | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 .foreman diff --git a/.foreman b/.foreman new file mode 100644 index 00000000..aeb1a91f --- /dev/null +++ b/.foreman @@ -0,0 +1 @@ +port: 21000 diff --git a/config/puma.rb b/config/puma.rb index e407981d..7f69b5a7 100644 --- a/config/puma.rb +++ b/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!