我得到这个错误([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