|
|
@ -1,3 +1,5 @@ |
|
|
|
|
|
require_relative 'application' |
|
|
|
|
|
|
|
|
# This configuration file will be evaluated by Puma. The top-level methods that |
|
|
# This configuration file will be evaluated by Puma. The top-level methods that |
|
|
# are invoked here are part of Puma's configuration DSL. For more information |
|
|
# are invoked here are part of Puma's configuration DSL. For more information |
|
|
# about methods provided by the DSL, see https://puma.io/puma/Puma/DSL.html. |
|
|
# about methods provided by the DSL, see https://puma.io/puma/Puma/DSL.html. |
|
|
@ -25,21 +27,21 @@ |
|
|
# Any libraries that use a connection pool or another resource pool should |
|
|
# Any libraries that use a connection pool or another resource pool should |
|
|
# be configured to provide at least as many connections as the number of |
|
|
# be configured to provide at least as many connections as the number of |
|
|
# threads. This includes Active Record's `pool` parameter in `database.yml`. |
|
|
# threads. This includes Active Record's `pool` parameter in `database.yml`. |
|
|
threads_count = ENV.fetch("RAILS_MAX_THREADS", 3) |
|
|
|
|
|
|
|
|
threads_count = ENV.fetch('RAILS_MAX_THREADS', 3) |
|
|
threads threads_count, threads_count |
|
|
threads threads_count, threads_count |
|
|
|
|
|
|
|
|
# Specifies the `port` that Puma will listen on to receive requests; default is 3000. |
|
|
# Specifies the `port` that Puma will listen on to receive requests; default is 3000. |
|
|
port ENV.fetch("PORT", 3000) |
|
|
|
|
|
|
|
|
port ENV.fetch('PORT', 3000) |
|
|
|
|
|
|
|
|
# Allow puma to be restarted by `bin/rails restart` command. |
|
|
# Allow puma to be restarted by `bin/rails restart` command. |
|
|
plugin :tmp_restart |
|
|
plugin :tmp_restart |
|
|
|
|
|
|
|
|
# Run the Tailwindcss watcher alongside Puma |
|
|
# Run the Tailwindcss watcher alongside Puma |
|
|
plugin :tailwindcss if ENV.fetch("RAILS_ENV", "development") == "development" |
|
|
|
|
|
|
|
|
plugin :tailwindcss if ENV.fetch('RAILS_ENV', 'development') == 'development' |
|
|
|
|
|
|
|
|
# Run the Solid Queue supervisor inside of Puma for single-server deployments. |
|
|
# Run the Solid Queue supervisor inside of Puma for single-server deployments. |
|
|
plugin :solid_queue if ENV["SOLID_QUEUE_IN_PUMA"] |
|
|
|
|
|
|
|
|
plugin :solid_queue if ENV['SOLID_QUEUE_IN_PUMA'] |
|
|
|
|
|
|
|
|
# Specify the PID file. Defaults to tmp/pids/server.pid in development. |
|
|
# Specify the PID file. Defaults to tmp/pids/server.pid in development. |
|
|
# In other environments, only set the PID file if requested. |
|
|
# In other environments, only set the PID file if requested. |
|
|
pidfile ENV["PIDFILE"] if ENV["PIDFILE"] |
|
|
|
|
|
|
|
|
pidfile ENV['PIDFILE'] if ENV['PIDFILE'] |