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

前端 未结 11 1849
一整个雨季
一整个雨季 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:43

    I had this problem deploying a Django app to Heroku.

    • the git repository has to be initialised in the Django project root folder (where manage.py lives)
    • this is also where the Procfile needs to sit

    File 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
    

提交回复
热议问题