开发者

Deploying Django App on Heroku

I've been following the heroku django tutorial at http://devcenter.heroku.com/articles/django and I keep running into the following problem. When I run heroku open and go to my app's website I always get an Applicatio开发者_StackOverflow社区n Error. When I look at the logs I see the following lines:

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

My ProcFile only contains web: python hellodjango/manage.py runserver.

Lastly, when I use the foreman start at the command line my django app runs fine locally.

Any ideas? Thanks


Has your hellodjango directory added, committed to git, and been pushed to Heroku? You should be able to ensure this with:

git status

Additionally you can explore an isolated dyno instance that has all of your application code as well as config vars with:

heroku run bash

This should allow you to ensure the file is there and if you're able to run the same command in your Procfile you should see the same results to help with troubleshooting.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜