ログに Rails 固有のエントリが表示されないのはなぜですか?
私はNginxプロキシでPuma 2.7.1を使用しています。通常のDebianボックスでは、何も派手ではなく、RVM経由でruby 1.9.3を使用しています。
私のプーマ設定:
#!/usr/bin/env puma
environment 'sandbox'
bind 'unix://tmp/puma.sock'
stdout_redirect 'log/puma.log', 'log/puma_error.log', true
pidfile 'tmp/pids/puma.pid'
state_path 'tmp/pids/puma.state'
daemonize true
workers 4
次の方法で puma を起動します。
bundle exec puma -C config/puma/config.rb
そうですか:
[23664] Puma starting in cluster mode...
[23664] * Version 2.7.1, codename: Earl of Sandwich Partition
[23664] * Min threads: 0, max threads: 16
[23664] * Environment: sandbox
[23664] * Process workers: 4
[23664] * Phased restart available
[23664] * Listening on unix://tmp/puma.sock
[23664] * Daemonizing...
走る:
tail -f log/puma*
そうですか:
==> log/puma_error.log <==
X-Accel-Mapping header missing
=== puma startup: 2014-02-13 14:08:52 +0100 ===
[deprecated] I18n.enforce_available_locales will default to true in the future. If you really want to skip validation of your locale you can set I18n.enforce_available_locales = false to avoid this message.
==> log/puma.log <==
=== puma startup: 2014-02-13 14:08:52 +0100 ===
[23670] - Worker 23678 booted, phase: 0
[23670] - Worker 23674 booted, phase: 0
[23670] - Worker 23686 booted, phase: 0
[23670] - Worker 23682 booted, phase: 0
しかし、これ以上のログは表示されず、アプリケーションに関連するものは何もありません。
アプリケーションで例外が発生すると、ログに何も記録されません... "tabula rasa"