I am trying to deploy a test app to Heroku --stack cedar but every time I do my Procfile is being ignored.
It should be saying this:
Procfile declare
I have sth to say about "Procfile declares types -> (none)" error.
One thing we should pay attention to is the hidden extension of "Procfile" file. I thought my command in "Procfile" was correct but I kept receiving this error. After half an hour I found that "Procfile" has the extension ".txt" but was hidden by the default setting of my macOS. After removing the extension, everything works fine!
I'm adding to Pascal Lindelauf answer - make sure your file name is "Procfile" (with a capital P) and not "procfile" (that was the case with me just now) good luck!
I had this problem deploying a Django app to Heroku.
manage.py
lives) Procfile
needs to sitFile structure:
Documents/
|---djangoprojectname/
| |---djangoprojectname/
| | |---__init__.py
| | |---settings.py
| | |---urls.py
| | |---wsgi.py
| |---djangoappname/
| |---.git
| |---manage.py
| |---Procfile
The Procfile
should look like this as per the docs:
web: gunicorn djangoprojectname.wsgi
Did you remember to commit your Procfile
to git? I've forgotten to do this commit, done a git push heroku master
, and seen the (none)
message stated above.
If you've forgotten, then commit your Procfile
and perform git push heroku master
again.
I was getting the same problem, and tried everything posted here. I was getting:
Procfile declares types -> (none)
Instead of Procfile declares types -> web. My fix was to change in the regedit to 0 (tutorial here https://www.thewindowsclub.com/show-file-extensions-in-windows) and then deleting the .txt in the end of Procfile (So It was just a file with no extension). After that my problem was solved! You can check if you have solved doing the following commands in the cmd:
heroku ps
Should display something like:
=== web (Free): gunicorn app:app (1)
Or the git push:
git push heroku master
And that should display:
Procfile declares types -> web