Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/heroku/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/logging/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Heroku日志没有显示任何错误,但我的大多数URL都是;我们';很抱歉,出了点问题。”;_Heroku_Logging - Fatal编程技术网

Heroku日志没有显示任何错误,但我的大多数URL都是;我们';很抱歉,出了点问题。”;

Heroku日志没有显示任何错误,但我的大多数URL都是;我们';很抱歉,出了点问题。”;,heroku,logging,Heroku,Logging,我的应用程序在我的本地机器上运行得非常好,但是当我将应用程序推到Heroku后创建第一篇帖子时,我得到了“很抱歉,出现了一些问题。”除了/posts/new之外的每个页面上,Heroku logs命令都显示: 2011-05-30T19:24:02+00:00 heroku[api]: Set maintenance mode off by myemailaddress@blah.com 2011-05-30T19:24:04+00:00 heroku[web.1]: Unidling 2011

我的应用程序在我的本地机器上运行得非常好,但是当我将应用程序推到Heroku后创建第一篇帖子时,我得到了“很抱歉,出现了一些问题。”除了
/posts/new
之外的每个页面上,
Heroku logs
命令都显示:

2011-05-30T19:24:02+00:00 heroku[api]: Set maintenance mode off by myemailaddress@blah.com
2011-05-30T19:24:04+00:00 heroku[web.1]: Unidling
2011-05-30T19:24:04+00:00 heroku[web.1]: State changed from created to starting
2011-05-30T19:24:08+00:00 heroku[web.1]: Starting process with command: `thin -p 54761 -e production -R /home/heroku_rack/heroku.ru start`
2011-05-30T19:24:16+00:00 heroku[web.1]: State changed from starting to up
2011-05-30T19:24:17+00:00 heroku[router]: GET mywebsite.com/ dyno=web.1 queue=0 wait=0ms service=1172ms bytes=934
2011-05-30T19:24:17+00:00 heroku[router]: GET mywebsite.com/ dyno=web.1 queue=1 wait=1171ms service=58ms bytes=934
2011-05-30T19:26:27+00:00 heroku[router]: GET mywebsite.com/new dyno=web.1 queue=0 wait=0ms service=18ms bytes=4324
2011-05-30T19:26:27+00:00 heroku[router]: GET mywebsite.com/stylesheets/style.css dyno=web.1 queue=0 wait=0ms service=1ms bytes=5716
2011-05-30T19:26:28+00:00 heroku[router]: GET mywebsite.com/javascripts/jquery-ui-1.8.13.custom.min.js dyno=web.1 queue=0 wait=0ms service=8ms bytes=20496
2011-05-30T19:26:28+00:00 heroku[router]: GET mywebsite.com/javascripts/rails.js dyno=web.1 queue=0 wait=0ms service=1ms bytes=12951
2011-05-30T19:26:28+00:00 heroku[router]: GET mywebsite.com/stylesheets/jquery-ui-1.8.13.custom.css dyno=web.1 queue=0 wait=0ms service=9ms bytes=21082
2011-05-30T19:26:28+00:00 heroku[router]: GET mywebsite.com/images/newlogo.png dyno=web.1 queue=0 wait=0ms service=4ms bytes=2804
2011-05-30T19:27:18+00:00 heroku[router]: GET mywebsite.com/robots.txt dyno=web.1 queue=0 wait=0ms service=1ms bytes=455
2011-05-30T12:27:19-07:00 heroku[nginx]: GET /robots.txt HTTP/1.1 | 207.46.195.229 | 486 | http | 200
2011-05-30T19:27:59+00:00 heroku[router]: GET mywebsite.com/ dyno=web.1 queue=0 wait=0ms service=32ms bytes=934
2011-05-30T12:27:59-07:00 heroku[nginx]: GET / HTTP/1.1 | 207.46.195.229 | 965 | http | 500
2011-05-30T19:29:18+00:00 heroku[router]: GET mywebsite.com/ dyno=web.1 queue=0 wait=0ms service=21ms bytes=934
2011-05-30T12:29:19-07:00 heroku[nginx]: GET / HTTP/1.1 | 24.16.162.252 | 965 | http | 500
2011-05-30T19:29:28+00:00 heroku[router]: GET mywebsite.com/ dyno=web.1 queue=0 wait=0ms service=30ms bytes=934
2011-05-30T12:29:29-07:00 heroku[nginx]: GET / HTTP/1.0 | 207.46.195.229 | 965 | http | 500
2011-05-30T19:34:45+00:00 heroku[router]: GET mywebsite.com/posts dyno=web.1 queue=0 wait=0ms service=46ms bytes=934
2011-05-30T19:34:53+00:00 heroku[router]: GET mywebsite.com/posts/1 dyno=web.1 queue=0 wait=0ms service=45ms bytes=934

由于假期原因,Heroku客户服务今天不可用。我想知道是否有人知道我如何解决这个问题。我已启用扩展日志功能。

如果日志中没有显示任何内容,则可能是您的应用程序在启动时出现了某种问题

尝试在本地生产模式下运行它,查看启动服务器时是否有任何异常

rails server -e production

这不是对上述问题的直接回答,但更多的是关于为什么Heroku上的日志不够详细的相关问题

对于那些像我一样到达这篇SO帖子的人,因为他们的日志很少,而且不明白为什么,有Rails 4,请注意在
Gemfile
中,为了在Heroku日志中获得详细的调试级别日志。本质上,添加gem可以在Rails4中启用标准输出日志记录,没有它,调试级别日志信息不会传递到Heroku日志中

另外,当然,您必须在
config/environments/production.rb
文件中启用日志级调试:

config.log_level = :debug

看起来我所需要做的就是一个
heroku-rake-db:create:all
和一个
heroku-rake-db:reset
谢谢你的帮助。