I need to add Gunicorn parameter --timeout 600
. Where should I add it? My project contains a Procfile
, server.py
and Jupyter notebook and requirements.txt
.
CodePudding user response:
Your Procfile
defines process types for Heroku to run. Yours likely contains a line like this:
web: gunicorn hello:app
This tells Heroku that you have a web
process that can be started by running gunicorn hello:app
. If you want to pass an argument to gunicorn
, modify that line accordingly:
web: gunicorn hello:app --timeout 600
Commit that change and redeploy.