Skip to content

Commit

Permalink
update puma config
Browse files Browse the repository at this point in the history
  • Loading branch information
manuelmeurer committed Dec 8, 2023
1 parent 407a5bb commit 2f8bd47
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions config/puma.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
threads min_threads_count, max_threads_count

if ENV["RAILS_ENV"] == "production"
bind "tcp://127.0.0.1:#{PORT}"

require "concurrent-ruby"
worker_count = Integer(ENV.fetch("WEB_CONCURRENCY") { Concurrent.physical_processor_count })
if worker_count > 1
Expand Down Expand Up @@ -44,16 +46,3 @@
on_worker_shutdown do
sidekiq&.stop
end



# :concurrency: 2
# :schedule:
# Compats::CheckAllUnchecked:
# cron: "*/10 * * * *"
# Maintenance::CheckGitBranches:
# cron: 0 * * * *
# Maintenance::CheckPendingCompats:
# cron: 0 * * * *
# RefreshSitemap:
# cron: 0 1 * * *

0 comments on commit 2f8bd47

Please sign in to comment.