error: [Errno 98] Address already in use

你离开我真会死。 提交于 2019-12-01 15:24:44

Looks like you're calling run:flaskapp instead of app:flaskapp and run.py is trying to open another instance.

16:35:44 web.1  |   File "/home/adminuser/Desktop/Github/SoftwareEng/barcodeServer/SoftwareEng/run.py", line 3, in <module>

First, always encapsulate the run:

if __name__ == '__main__':
    flaskapp.run(debug=True)

And update your procfile to call the app.__init__.py instead:

web: gunicorn app:flaskapp --log-file=-

PS: I don't know what procfile or foreman are -- heroku things?

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!