djangoherokudeploymentprocfileapplication-error

Heroku shows 'Procfile declares types -> (none)' but I am declaring a web process


I have tried each and everything... Renamed the Procfile, moved it to the root directory, etc. Wee the images below.

This is the error showing on my webapp page:

This is showing on my dashboard as Heroku has not recognized my Procfile:

This is the directory in which Procfile is there:

I see this when I deploy:

Procfile declares types -> (none)

This is the content of my Procfile:

Please Help me out


Solution

  • Do you see the third column in your Windows screenshot, where it says "Text Document" for your Procfile? That file is actually called Procfile.txt, not Procfile.

    Windows Explorer

    Windows hides file extensions for known file types by default, but you can turn them on in the "View" tab. After doing that, rename your file to actually be called Procfile, commit, and then redeploy.

    Alternatively, if you're using Git bash, you can do this on the command line:

    git mv Procfile.txt Procfile
    git commit -m "Fix Procfile name"