我是 Rails 和 Puma 的新手,所以这个问题对于简单的解决方案可能太愚蠢了,如果你认为我做错了什么,请指导我。
我正在尝试与工人一起为我的导轨启动 Puma 服务器。如果我将工人设置为 0
puma -w0
服务器完美启动,但如果我将 worker 设置为 1 或更多,则会出现以下错误:
E:\RoR_tryouts\ws_13.11.13\todo>puma -w3
[2120] *** SIGUSR2 not implemented, signal based restart unavailable!
[2120] *** SIGUSR1 not implemented, signal based restart unavailable!
[2120] Puma starting in cluster mode...
[2120] * Version 2.7.1, codename: Earl of Sandwich Partition
[2120] * Min threads: 0, max threads: 16
[2120] * Environment: development
[2120] * Process workers: 3
[2120] * Phased restart available
[2120] * Listening on tcp://0.0.0.0:9292
C:/Ruby/Ruby193/lib/ruby/gems/1.9.1/gems/puma-2.7.1/lib/puma/cluster.rb:229:in `trap': unsupported signal SIGCHLD (ArgumentError)
from C:/Ruby/Ruby193/lib/ruby/gems/1.9.1/gems/puma-2.7.1/lib/puma/cluster.rb:229:in `run'
from C:/Ruby/Ruby193/lib/ruby/gems/1.9.1/gems/puma-2.7.1/lib/puma/cli.rb:442:in `run'
from C:/Ruby/Ruby193/lib/ruby/gems/1.9.1/gems/puma-2.7.1/bin/puma:10:in `<top (required)>'
from C:/Ruby/Ruby193/bin/puma:23:in `load'
from C:/Ruby/Ruby193/bin/puma:23:in `<main>'
规格:
- Windows 7的
- Ruby 1.9.3p448 (2013-06-27) [i386-mingw32] MRI Rail 4.0.0 Puma
- 版本 2.7.1,代号:Earl of Sandwich Partition