1👍
I suspect there’s nothing more to see. A good first step would be to try running heroku local
to see if you are having the same problem on your development machine. This will use your Procfile
whereas if you are running via python manage.py migrate
or similar your Procfile
will not be used.
The error gives a good hint, though:
app[web.1]: Error: No application module specified.
Gunicorn expects an application module name as a command-line argument. I suspect you intend application.george_paintings.george_paintings.wsgi
to be interpreted as your application module, but it’s getting swallowed up as an argument to --pythonpath
:
gunicorn --pythonpath application.george_paintings.george_paintings.wsgi #...
You shouldn’t need to explicitly provide a PYTHONPATH
. Try removing that argument from your Procfile
entirely:
gunicorn application.george_paintings.george_paintings.wsgi --log-file - --log-level debug
If this works locally with heroku local
, commit the change and redeploy.
If not, take a look at your directory structure. application.george_paintings.george_paintings.wsgi
is a bit of a weird module name for a Django project. Usually you’d just need something like george_paintings.wsgi
(indicating that Gunicorn should use the Python module it finds at george_paintings/wsgi.py
as its entry point).