Home > Blockchain >  Heroku - `gunicorn: command not found` although it is installed
Heroku - `gunicorn: command not found` although it is installed

Time:01-17

I'm trying to deploy an app on Heroku. The build goes fine, but I get an Application error upon going to the site. In the Heroku logs, I see the error

bash: line 1: guncicorn: command not found

Here is the Procfile:

web: guncicorn <DJANGO_PROJECT_FOLDER>.wsgi
heroku buildpacks:clear
heroku buildpacks:add --index heroku/python
heroku ps:scale worker=1

I've tried effectively everything in this thread to no avail, including

  1. opening a bash shell with heroku run bash, uninstalling and reinstalling everything in requirements.txt. I can see a line that says Requirement already satisfied: gunicorn==20.1.0.
  2. running pipenv install -r requirements.txt so I can delete requirements.txt (some people said Heroku prefers Pipenv files now?) but that failed

If relevant, I am using this buildpack, but the only thing not in the subdirectory that I use for the build are miscellaneous markdown files (READMEs etc.). I have only a requirements.txt file and not a Pipfile or Pipfile.lock file.

If anyone has any advice it would be greatly appreciated! I am completely at a loss.

CodePudding user response:

There was a typo in the Procfile as pointed out by @Chris!

  • Related