What is the reason for “Procfile declares types -> (none)” in Heroku?

前端 未结 11 1847
一整个雨季
一整个雨季 2020-12-14 09:06

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         


        
11条回答
  •  醉话见心
    2020-12-14 09:46

    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
    

提交回复
热议问题