0

我开始在开发中使用 Thin 而不是 WEBrick(Rails 版本 3.0.9)

使用 WEBbrick,我会在服务器运行时在终端窗口中看到所有列出的请求(以及对数据库的调用)。

我怎么能瘦呢?当我做thin start我看到的唯一输出是:

>> Using rack adapter
>> Thin web server (v1.2.11 codename Bat-Shit Crazy)
>> Maximum connections set to 1024
>> Listening on 0.0.0.0:3000, CTRL+C to stop

谢谢!

4

2 回答 2

-1

试试thin start -Vhttps://github.com/macournoyer/thin/blob/master/lib/thin/runner.rb#L134

opts.on_tail("-V", "--trace", "Set tracing on (log raw request/response)")
于 2011-08-03T18:59:56.950 回答
-1

尝试rails server thin -b 0.0.0.0 -p 3000 -e development

或使用 bundle 运行它

bundle exec rails server thin -b 0.0.0.0 -p 3000 -e development
于 2014-01-11T04:19:43.960 回答