我正在尝试按照手册使用 Dokku 部署 helloworld Flask 应用程序。
要求:
Flask==0.9
Jinja2==2.6
Werkzeug==0.8.3
gunicorn==0.17.2
档案:
web: gunicorn wsgi:app -b 127.0.0.1:$PORT
wsgi.py:
from flask import Flask
app = Flask(__name__)
@app.route("/")
def hello():
return "Hello World!"
if __name__ == "__main__":
app.run()
docker 容器监听 49153 端口
wget 127.0.0.1:49153 给了我
Connecting to 127.0.0.1:49153... connected.
HTTP request sent, awaiting response... No data received.
Retrying.
docker logs 没有给出错误:
2014-02-01 08:35:03 [10] [INFO] Starting gunicorn 0.17.2
2014-02-01 08:35:03 [10] [INFO] Listening at: http://127.0.0.1:5000 (10)
2014-02-01 08:35:03 [10] [INFO] Using worker: sync
2014-02-01 08:35:03 [15] [INFO] Booting worker with pid: 15
如何调试此错误?