部署我的代码并访问该站点后,我收到了 H20 错误。这是日志:
2013-04-12T11:45:59.304354+00:00 heroku[router]: at=error code=H20 desc="App boot timeout" method=GET path=/ host=olp-website.herokuapp.com fwd="86.151.6.106" dyno= connect= service= status=503 bytes=
所以我试图检查测功机:
heroku ps --app olp-website
=== web: newrelic-admin run-program gunicorn -c gunicorn.py.ini wsgi:application
web.1: up 2013/04/12 12:46:21 (~ 1m ago)
heroku ps:restart --app olp-website
Restarting processes... done
heroku ps --app olp-website
=== web: newrelic-admin run-program gunicorn -c gunicorn.py.ini wsgi:application
web.1: starting 2013/04/12 12:48:42 (~ 6s ago)
现在收到 500 内部服务器错误:
2013-04-12T13:38:19.116492+00:00 app[web.1]: 2013-04-12 13:38:19 [2] [INFO] Listening at: http://0.0.0.0:28853 (2)
2013-04-12T13:38:19.115928+00:00 app[web.1]: 2013-04-12 13:38:19 [2] [INFO] Starting gunicorn 0.14.3
2013-04-12T13:38:19.116593+00:00 app[web.1]: 2013-04-12 13:38:19 [2] [INFO] Using worker: gevent
2013-04-12T13:38:19.122714+00:00 app[web.1]: 2013-04-12 13:38:19 [5] [INFO] Booting worker with pid: 5
2013-04-12T13:38:19.135537+00:00 app[web.1]: 2013-04-12 13:38:19 [7] [INFO] Booting worker with pid: 7
2013-04-12T13:38:19.129099+00:00 app[web.1]: 2013-04-12 13:38:19 [6] [INFO] Booting worker with pid: 6
2013-04-12T13:38:19.140715+00:00 app[web.1]: 2013-04-12 13:38:19 [8] [INFO] Booting worker with pid: 8
2013-04-12T13:38:19.393488+00:00 heroku[web.1]: State changed from starting to up
2013-04-12T13:38:20.310391+00:00 app[web.1]: 2013-04-12 13:38:20,310 (5/Dummy-2) newrelic.core.agent INFO - New Relic Python Agent (1.3.0.289)
2013-04-12T13:38:21.072892+00:00 heroku[router]: at=info method=GET path=/ host=olp-website.herokuapp.com fwd="86.151.6.106" dyno=web.1 connect=31ms service=761ms status=500 bytes=5
我看不出有什么问题,因为代码在开发中运行良好,并且我正在使用 django-skel 设置文件进行生产。
你知道什么可能设置不正确吗?
编辑:只看heroku上的数据库信息,看起来数据库有0个表 - 所以我猜sqlite数据库没有迁移到postresql。