将 repo 推送到 heroku master 后,我收到此错误([Errno 2] No such file or directory)。这是我的日志。
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
我不知道为什么它无法打开文件。当我使用我的开发服务器时,它可以正常打开。有任何想法吗?谢谢阅读。