2016-07-30 1 views
0

매우 기본적인 django 웹 사이트를 heroku에 배포하고 항상 오류가 발생하려고합니다. 루트 디렉토리에 Procfile.txt 및 requirements.txt 파일이 있지만 procfile에 항상 오류가 누락되어 있습니다.Heoku에 django 웹 사이트를 배포하는 중 응용 프로그램에 Procfile 오류가 누락되었습니다.

내 procfile은 다음과 같습니다

web: gunicorn mysite.wsgi:application --log-file - 
heroku ps:scale web=1 

내 requirements.txt은 다음과 같습니다

-----> Python app detected 

!  Warning: Your application is missing a Procfile. This file tells Heroku how to run your application. 

!  Learn more: https://devcenter.heroku.com/articles/procfile 

-----> Uninstalling stale dependencies 

     Uninstalling virtualenv-15.0.2: 

     Successfully uninstalled virtualenv-15.0.2 

    $ pip install -r requirements.txt 

     Collecting gunicorn (from -r requirements.txt (line 2)) 

     Downloading gunicorn-19.6.0-py2.py3-none-any.whl (114kB) 

     Installing collected packages: gunicorn 

     Successfully installed gunicorn-19.6.0 

-----> Discovering process types 

     Procfile declares types -> (none) 

-----> Compressing... 

     Done: 41.3M 

-----> Launching... 

     Released v7 

     https://jpthoyo.herokuapp.com/ deployed to Heroku 

이 정보는 해결책을 찾기 위해 충분하지 않은 경우 : 빌드 로그에

Django==1.9.8 
gunicorn 

그럼 말해줘. 감사합니다

답변

0

파일은 Procfile.txt가 아니라 Procfile이라고해야합니다.

+0

예 해당 이름이 Procfile이며 해당 txt 파일 – Ishan

+0

실제 디렉토리 목록을 표시하십시오. –

관련 문제