问题
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