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!