Heroku flask deployment issue - logs shows gunicorn: error: unrecognized arguments: app:app

一个人想着一个人 提交于 2019-12-24 09:58:06

问题


We have a small flask project here https://github.com/codesydney/OPEND

It is working as expected locally. However, when deployed to heroku, it keeps on throwing gunicorn: error: unrecognized arguments: app:app.

Procfile content is "web: gunicorn app:app".

Thanks in advance for your help. Cheers!


回答1:


Your should write in your procfile this:

web: gunicorn run:app

Leftside argument is a name of the app that will be launched. In your case it's run.py.



来源:https://stackoverflow.com/questions/48851353/heroku-flask-deployment-issue-logs-shows-gunicorn-error-unrecognized-argumen

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