back to new puma, have to roll out passenger

This commit is contained in:
Hub Feenix Member 2023-01-04 12:43:51 +02:00
parent 8cd2edb521
commit de6e0908e1
5 changed files with 5 additions and 13 deletions

View File

@ -36,7 +36,7 @@ group :development, :test do
gem "mina" gem "mina"
gem 'guard-minitest' gem 'guard-minitest'
gem 'guard' # NOTE: this is necessary in newer versions gem 'guard' # NOTE: this is necessary in newer versions
gem "puma" , "~> 4.0" gem "puma"
end end
group :development do group :development do

View File

@ -271,7 +271,7 @@ GEM
coderay (~> 1.1) coderay (~> 1.1)
method_source (~> 1.0) method_source (~> 1.0)
public_suffix (5.0.1) public_suffix (5.0.1)
puma (4.3.12) puma (6.0.2)
nio4r (~> 2.0) nio4r (~> 2.0)
pundit (2.3.0) pundit (2.3.0)
activesupport (>= 3.0.0) activesupport (>= 3.0.0)
@ -428,7 +428,7 @@ DEPENDENCIES
mina mina
passenger passenger
pg (~> 1.1) pg (~> 1.1)
puma (~> 4.0) puma
rails (~> 7.0) rails (~> 7.0)
ruby2js! ruby2js!
sassc-rails sassc-rails

View File

@ -1,3 +0,0 @@
#!/usr/bin/env sh
kill -9 `cat tmp/pids/server.pid`

View File

@ -1,3 +0,0 @@
#!/usr/bin/env sh
exec ./bin/rails s -b 0.0.0.0 -p 3000 -d

View File

@ -13,10 +13,6 @@ threads min_threads_count, max_threads_count
# #
worker_timeout 3600 if ENV.fetch("RAILS_ENV", "development") == "development" worker_timeout 3600 if ENV.fetch("RAILS_ENV", "development") == "development"
# Specifies the `port` that Puma will listen on to receive requests; default is 3000.
#
port ENV.fetch("PORT") { 3000 }
# Specifies the `environment` that Puma will run in. # Specifies the `environment` that Puma will run in.
# #
environment ENV.fetch("RAILS_ENV") { "development" } environment ENV.fetch("RAILS_ENV") { "development" }
@ -24,6 +20,8 @@ environment ENV.fetch("RAILS_ENV") { "development" }
# Specifies the `pidfile` that Puma will use. # Specifies the `pidfile` that Puma will use.
pidfile ENV.fetch("PIDFILE") { "tmp/pids/server.pid" } pidfile ENV.fetch("PIDFILE") { "tmp/pids/server.pid" }
bind "tcp://0.0.0.0:3000"
# Specifies the number of `workers` to boot in clustered mode. # Specifies the number of `workers` to boot in clustered mode.
# Workers are forked web server processes. If using threads and workers together # Workers are forked web server processes. If using threads and workers together
# the concurrency of the application would be max `threads` * `workers`. # the concurrency of the application would be max `threads` * `workers`.