我得到這個錯誤([Errno 2]沒有這樣的文件或目錄)後,我把推銷回到heroku主。這是我的日誌。Django部署使用Heroku - [Errno 2]沒有這樣的文件或目錄
2012-04-17T18:24:53+00:00 app[web.1]: python: can't open file '/test/project/manage.py': [Errno 2] No such file or directory
2012-04-17T18:24:54+00:00 heroku[web.1]: Process exited with status 2
2012-04-17T18:24:54+00:00 heroku[web.1]: State changed from starting to crashed
2012-04-17T18:24:54+00:00 heroku[web.1]: State changed from crashed to created
2012-04-17T18:24:54+00:00 heroku[web.1]: State changed from created to starting
2012-04-17T18:24:57+00:00 heroku[web.1]: Starting process with command python /test/project/manage.py runserver 0.0.0.0:4473 --noreload 2012-04-17T18:24:57+00:00 app[web.1]: python: can't open file '/test/project/manage.py': [Errno 2] No such file or directory
我Procfile如下所示:
web: python /test/project/manage.py runserver 0.0.0.0:$PORT --noreload
我不知道爲什麼它不能打開該文件。當我使用我的開發服務器時,它會打開。有任何想法嗎?謝謝閱讀。
然後你可以做到這一點你推動你當地回購的主分支? – ryudice 2012-04-17 23:56:26
我這麼認爲。如果我做git分支,我看到的唯一的東西是* master – Zach 2012-04-18 00:01:36