Heroku部署python应用程序崩溃?

时间:2018-06-16 23:18:32

标签: python heroku flask deployment werkzeug

所以,每当我尝试连接到我的python应用程序时,它都会崩溃并给出我的错误:

2018-06-16T22:59:44.633397+00:00 app[web.1]:     from flask import 
Markup
2018-06-16T22:59:44.633403+00:00 app[web.1]:   File 
"/app/.heroku/python/lib/python2.7/site-packages/flask/__init__.py", 
line 30, in <module>
2018-06-16T22:59:44.633405+00:00 app[web.1]:     from .blueprints 
import Blueprint
2018-06-16T22:59:44.633415+00:00 app[web.1]:   File 
"/app/.heroku/python/lib/python2.7/site-packages/flask/blueprints.py", 
line 13, in <module>
2018-06-16T22:59:44.729487+00:00 heroku[web.1]: State changed from 
starting to crashed
2018-06-16T22:59:44.633417+00:00 app[web.1]:     from werkzeug.urls 
import url_join
2018-06-16T22:59:44.633419+00:00 app[web.1]: ImportError: cannot 
import name url_join
2018-06-16T22:59:44.714734+00:00 heroku[web.1]: Process exited with 
status 1
2018-06-16T22:59:45.682717+00:00 heroku[router]: at=error code=H10 
desc="App crashed" method=GET path="/" host=snowfin.herokuapp.com 
request_id=0488bd20-cdf7-4f39-9665-31038b8833a9 fwd="199.192.192.168" 
dyno= connect= service= status=503 bytes= protocol=https
2018-06-16T22:59:46.227743+00:00 heroku[router]: at=error code=H10 
desc="App crashed" method=GET path="/favicon.ico" 
host=snowfin.herokuapp.com request_id=f78f7452-0266-4683-b2cb- 
fa26e8439c69 fwd="199.192.192.168" dyno= connect= service= status=503 
bytes= protocol=https

我正在使用python 2.7.15,如果需要可以提供更多信息..谢谢大家!

1 个答案:

答案 0 :(得分:0)

我通过使用不同的方式来制作网络服务器来解决这个问题...谢谢!