K
K
k0r0g2021-09-17 02:55:13
Django
k0r0g, 2021-09-17 02:55:13

Why doesn't Heroku see Procfile?

Deploying a django app to hiroku was having difficulty.
As I understand it, for some reason heroku does not see my Procfile and, accordingly, when it
heroku ps
issues
No dynos on ⬢ ita3

Project structure:
6143d8d0efab6381036245.png

Procfile:
web gunicorn config.wsgi:application

I also tried this option:

release: python manage.py makemigrations --no-input
release: python manage.py migrate --no-input

web: gunicorn config.wsgi


OS Windows

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
k0r0g, 2021-09-18
@k0r0g

In general, the root folder for the git directory should not be a PyCharm project, but a django project. And in this folder all the files required for Heroku should be stored. This is the solution :)

M
MaxKozlov, 2021-09-17
@MaxKozlov

procfile must be in the root of the project, not in a subfolder
https://devcenter.heroku.com/articles/procfile#pro...

The Procfile must live in your app's root directory. It does not function if placed anywhere else.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question