我一直在遵循 Heroku Django 教程,网址是 http://devcenter.heroku.com/articles/django,但我总是遇到以下问题。当我运行
heroku open
并访问我的应用程序网站时,总是出现“应用程序错误”。当我查看日志时,看到以下几行:2011-10-11T04:55:35+00:00 heroku[web.1]: Starting process with command `python hellodjango/manage.py runserver`
2011-10-11T04:55:35+00:00 app[web.1]: python: can't open file 'hellodjango/manage.py': [Errno 2] No such file or directory
我的ProcFile
只包含web: python hellodjango/manage.py runserver
。
最后,当我在命令行使用foreman start
时,我的Django应用程序在本地运行良好。
有什么想法吗?谢谢。