开发者

How to show application requests on terminal window while using Thin and Rails 3.0

I started using Thin instead of WEBrick in development (Rails version 3.0.9)

With WEBbrick, I would see all the requests listed (and calls to the database) in the terminal window while the server was running.

How do I get that with thin? When I do thin start the only output I开发者_如何学Go see is:

>> 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


Try thin start -V. https://github.com/macournoyer/thin/blob/master/lib/thin/runner.rb#L134

opts.on_tail("-V", "--trace", "Set tracing on (log raw request/response)")


try rails server thin -b 0.0.0.0 -p 3000 -e development

or run it with bundle

bundle exec rails server thin -b 0.0.0.0 -p 3000 -e development
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜