【发布时间】:2014-04-01 14:41:22
【问题描述】:
我正在尝试设置多个瘦服务器(在 Windows 上运行 rails),根据我阅读的所有文档,正确的语法是:thin start -s5 或 thin start --server 5。这些都不起作用,我尝试了thin -h 并获得了所有可用的命令,但没有一个(-s / --server)没有出现在列表中。
我使用的是 Thin 1.6.2 代号 Doc Brown
编辑
thin -help 输出:
Server options:
-a, --address HOST bind to HOST address (default: 0.0.0.0)
-p, --port PORT use PORT (default: 3000)
-S, --socket FILE bind to unix domain socket
-y, --swiftiply [KEY] Run using swiftiply
-A, --adapter NAME Rack adapter to use (default: autodetect)
(rack, rails, ramaze, merb, file)
-R, --rackup FILE Load a Rack config file instead of Rack ada
pter
-c, --chdir DIR Change to dir before starting
--stats PATH Mount the Stats adapter under PATH
SSL options:
--ssl Enables SSL
--ssl-key-file PATH Path to private key
--ssl-cert-file PATH Path to certificate
Adapter options:
-e, --environment ENV Framework environment (default: development
)
--prefix PATH Mount the app under PATH (start with /)
Tuning options:
-b, --backend CLASS Backend to use, full classname
-t, --timeout SEC Request or command timeout in sec (default:
30)
-f, --force Force the execution of the command
--max-persistent-conns NUM Maximum number of persistent connections
(default: 100)
--threaded Call the Rack application in threads [exper
imental]
--threadpool-size NUM Sets the size of the EventMachine threadpoo
l.
(default: 20)
Common options:
-r, --require FILE require the library
-q, --quiet Silence all logging
-D, --debug Enable debug logging
-V, --trace Set tracing on (log raw request/response)
-h, --help Show this message
-v, --version Show version
【问题讨论】:
-
这应该是一个选项。
thin --help说什么? -
@tadman - 请看我的编辑
-
您使用的是什么操作系统?我看到了“集群选项”和“守护程序选项”部分,但显然你没有。有时,由于流程模型很难使用,某些功能在 Windows 上不受支持。
标签: ruby-on-rails ruby-on-rails-4 thin