相关疑难解决方法(0)

工头只显示"以pid#开头"的行,而没有别的

当我管理工头时,我得到以下内容:

 > foreman start
 16:47:56 web.1     | started with pid 27122
Run Code Online (Sandbox Code Playgroud)

只有当我停止它(通过ctrl-c)它才会显示我缺少的东西:

^CSIGINT received
16:49:26 system    | sending SIGTERM to all processes
16:49:26 web.1     | => Booting Thin
16:49:26 web.1     | => Rails 3.0.0 application starting in development on http://0.0.0.0:5000
16:49:26 web.1     | => Call with -d to detach
16:49:26 web.1     | => Ctrl-C to shutdown server
16:49:26 web.1     | >> Thin web server (v1.3.1 codename Triple Espresso)
16:49:26 web.1     | >> Maximum connections set to 1024
16:49:26 web.1     | …
Run Code Online (Sandbox Code Playgroud)

ruby rubygems ruby-on-rails heroku foreman

53
推荐指数
5
解决办法
1万
查看次数

Django的Heroku日志项目缺少错误

我在Heroku上运行一个简单的Django项目.它可以工作,但如果我收到服务器错误,它不会在日志中给我任何细节.这使得错误难以处理.

现在我已经设置了一个临时服务器,它有同样的问题 - 页面失败了,我没有得到任何反馈,为什么.

$ heroku日志

...

2012-08-08T13:55:58+00:00 app[web.1]: Development server is running at http://0.0.0.0:59048/
2012-08-08T13:55:59+00:00 heroku[web.1]: State changed from starting to up
2012-08-08T13:56:01+00:00 heroku[router]: GET [xxx].herokuapp.com/ dyno=web.1 queue=0 wait=0ms service=22ms status=500 bytes=27
2012-08-08T13:56:01+00:00 app[web.1]: [08/Aug/2012 14:56:01] "GET / HTTP/1.1" 500 27
2012-08-08T13:56:02+00:00 heroku[router]: GET [xxx].herokuapp.com/favicon.ico dyno=web.1 queue=0 wait=0ms service=6ms status=500 bytes=27
2012-08-08T13:56:09+00:00 heroku[router]: GET[xxx].herokuapp.com/admin dyno=web.1 queue=0 wait=0ms service=2ms status=301 bytes=0
2012-08-08T13:56:09+00:00 app[web.1]: [08/Aug/2012 14:56:09] "GET /admin HTTP/1.1" 301 0
2012-08-08T13:56:10+00:00 heroku[router]: GET [xxx].herokuapp.com/admin/ dyno=web.1 queue=0 wait=0ms service=224ms status=500 bytes=27 …
Run Code Online (Sandbox Code Playgroud)

python django logging heroku

12
推荐指数
1
解决办法
5017
查看次数

标签 统计

heroku ×2

django ×1

foreman ×1

logging ×1

python ×1

ruby ×1

ruby-on-rails ×1

rubygems ×1