puma 忽略了我的配置文件
puma ignoring my configuration file
我试图用 2 个工人启动 puma,但是当它启动时日志说:
Puma 2.11.3 starting...
* Min threads: 0, max threads: 16
* Environment: production
* Listening on tcp://0.0.0.0:3000
config/puma.rb:
workers Integer(ENV['PUMA_WORKERS'] || 2)
threads Integer(ENV['PUMA_MIN_THREADS'] || 1), Integer(ENV['PUMA_MAX_THREADS'] || 6)
知道为什么 puma 是用 0 分钟线程而不是 1 分钟线程启动的吗?
这是 RTFM questions. The puma documentation 状态之一:
when using the RACK_ENV environment variable, the default file location will be config/puma/environment_name.rb.
所以解决方法是将 config/puma.rb
重新定位到 config/puma/production.rb
我试图用 2 个工人启动 puma,但是当它启动时日志说:
Puma 2.11.3 starting...
* Min threads: 0, max threads: 16
* Environment: production
* Listening on tcp://0.0.0.0:3000
config/puma.rb:
workers Integer(ENV['PUMA_WORKERS'] || 2)
threads Integer(ENV['PUMA_MIN_THREADS'] || 1), Integer(ENV['PUMA_MAX_THREADS'] || 6)
知道为什么 puma 是用 0 分钟线程而不是 1 分钟线程启动的吗?
这是 RTFM questions. The puma documentation 状态之一:
when using the RACK_ENV environment variable, the default file location will be config/puma/environment_name.rb.
所以解决方法是将 config/puma.rb
重新定位到 config/puma/production.rb