Merge pull request #7243 from a666/fix/production-puma

Correct puma config for easier production usage

[ci skip]
pull/7245/head
Oliver Günther 6 years ago committed by GitHub
commit 6f139c3b13
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      config/puma.rb

@ -8,7 +8,7 @@ threads threads_count, threads_count
# Specifies the `port` that Puma will listen on to receive requests; default is 3000.
#
port ENV.fetch("PORT") { 3000 }
port ENV.fetch("PORT") { 3000 }
# Specifies the `environment` that Puma will run in.
#
@ -27,7 +27,7 @@ workers ENV.fetch("WEB_CONCURRENCY") { 1 }
# before forking the application. This takes advantage of Copy On Write
# process behavior so workers use less memory.
#
preload_app! if Rails.env.production?
preload_app! if ENV["RAILS_ENV"] == 'production'
# Allow puma to be restarted by `rails restart` command.
plugin :tmp_restart

Loading…
Cancel
Save