Skip to content

Commit

Permalink
change to newer puma version
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyranja committed Jul 23, 2024
1 parent 58aa4bd commit 612c07c
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 30 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ gem 'sassc-rails'

gem 'uglifier', '>= 1.0.3'

gem 'unicorn', '~> 5.1'
gem 'puma'

gem 'rack-piwik', '~> 0.3.0', require: 'rack/piwik'

Expand Down
9 changes: 3 additions & 6 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,6 @@ GEM
jquery-ui-rails (6.0.1)
railties (>= 3.2.16)
jsonapi-renderer (0.2.2)
kgio (2.11.4)
launchy (2.5.2)
addressable (~> 2.8)
letter_opener (1.8.1)
Expand Down Expand Up @@ -304,6 +303,8 @@ GEM
method_source (~> 1.0)
psych (3.3.3)
public_suffix (5.0.1)
puma (6.4.2)
nio4r (~> 2.0)
racc (1.7.1)
rack (2.2.6.4)
rack-attack (6.7.0)
Expand Down Expand Up @@ -343,7 +344,6 @@ GEM
rake (>= 12.2)
thor (~> 1.0)
rainbow (3.1.1)
raindrops (0.20.1)
rake (13.0.6)
rb-fsevent (0.11.2)
rb-inotify (0.10.1)
Expand Down Expand Up @@ -424,9 +424,6 @@ GEM
execjs (>= 0.3.0, < 3)
unaccent (0.4.0)
unicode-display_width (1.4.1)
unicorn (5.8.0)
kgio (~> 2.6)
raindrops (~> 0.7)
uniform_notifier (1.16.0)
warden (1.2.9)
rack (>= 2.0.9)
Expand Down Expand Up @@ -485,6 +482,7 @@ DEPENDENCIES
poltergeist (= 1.18.1)
pry
psych (< 4.0)
puma
rack-attack
rack-piwik (~> 0.3.0)
rack-timeout
Expand All @@ -499,7 +497,6 @@ DEPENDENCIES
simple_form
stackprof
uglifier (>= 1.0.3)
unicorn (~> 5.1)
webrick (~> 1.7)

RUBY VERSION
Expand Down
2 changes: 1 addition & 1 deletion Procfile
Original file line number Diff line number Diff line change
@@ -1 +1 @@
web: bundle exec unicorn -p $PORT -c ./config/unicorn.rb
web: bundle exec puma -C config/puma.rb
9 changes: 9 additions & 0 deletions config/puma.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
workers Integer(ENV['WEB_CONCURRENCY'] || 1)
threads_count = Integer(ENV['RAILS_MAX_THREADS'] || 5)
threads threads_count, threads_count

preload_app!

rackup DefaultRackup if defined?(DefaultRackup)
port ENV['PORT'] || 3000
environment ENV['RACK_ENV'] || 'development'
22 changes: 0 additions & 22 deletions config/unicorn.rb

This file was deleted.

0 comments on commit 612c07c

Please sign in to comment.