簡體   English   中英

django heroku工頭啟動錯誤代碼1

[英]django heroku foreman start error code 1

繼django heroku頁面開始逐字逐句。 https://devcenter.heroku.com/articles/django

在領班開始步驟,領班沒有正確運行。 ProcFile內容,

web: gunicorn hellodjango.wsgi

要求內容:

Django==1.5.1
dj-database-url==0.2.1
gunicorn==0.17.4
psycopg2==2.4.5

完全按照下面腳本目錄中的tutorial,gunicorn,procfile和requirements進入虛擬env,wsgi.py文件位於目錄hellodjango,路徑為C:\\hellodjango2\\newvirtualenv\\Scripts\\hellodjango

python和python / scripts位於pathfile上。

這是輸出

(newvirtualenv) C:\hellodjango2\newvirtualenv\Scripts>foreman start
09:48:58 web.1  | started with pid 3580
09:48:58 web.1  | exited with code 1
09:48:58 system | sending SIGKILL to all processes

在今天的heroku文檔之后,它建議您使用:

$ heroku local web

而不是foreman 你能嘗試一下嗎?

你可以做的另一件事就是檢查一切是否正常工作是自己運行django: python manage.py runserver ,如果它不工作,你可以添加該調用生成的回溯嗎?

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM