为什么我在日志中看不到任何Rails特定的条目?
我正在使用Puma 2.7.1和Nginx的代理,在一个普通的Debian框中,没有什么奇特的,Ruby 1.9.3通过RVM。
我的彪马configuration:
#!/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:
ActiveRecord :: ConnectionTimeoutError:无法在5.000秒内获得数据库连接(等待5.000秒)
Rails 4,Puma,Nginx – ActionController :: live Streaming在发送第一个块后死亡
在域的子uri上部署rails应用程序
铁轨美洲狮 – 命令没有configuration文件 – 错误日志的path?
Rails + Puma + Nginx每隔几天Bad Gateway 502
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
但是我没有看到更多的日志,没有任何应用程序相关。
当应用程序引发exception时,我在日志中什么也得不到…“tabula rasa”
没有Nginx的Puma – 同一个IP:PORT上的多个ruby应用程序
Rails / Nginx / CAPIstrano / Puma:(111:Connection refused)连接上游
Nginx袜子连接坏的网关
在Puma,rails,Nginx上设置一个rails应用程序一切正在运行,但Nginx发送错误
“我们很抱歉,但出了问题”:rails + Nginx + puma + digitalocean + ssl
Rails有一个单独的日志文件,并不会记录到美洲狮日志。 默认情况下,Rails会在logs/<environment>.log中logs/<environment>.log一个文件,例如log/production.log
总结以上是内存溢出为你收集整理的美洲狮/缺less日志全部内容,希望文章能够帮你解决美洲狮/缺less日志所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)