我已经按照django入门指南,逐字逐句地提供了这个Heroku | No app
页面。
使用命令foreman start
或python manage.py runserver
正常工作,我可以在本地查看该应用。当我push
这里是git push heroku
Counting objects: 9, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (5/5), done.
Writing objects: 100% (5/5), 685 bytes, done.
Total 5 (delta 4), reused 0 (delta 0)
-----> Python app detected
-----> No runtime.txt provided; assuming python-2.7.4.
-----> Using Python runtime (python-2.7.4)
-----> Installing dependencies using Pip (1.3.1)
Cleaning up...
-----> Collecting static files
266 static files copied.
-----> Discovering process types
Procfile declares types -> web
-----> Compiled slug size: 139.4MB
-----> Launching... done, v18
http://spritesheet-gen.herokuapp.com deployed to Heroku
以下是heroku logs
的最后回复。哪个也好看?
2013-11-25T16:43:21+00:00 heroku[slug-compiler]: Slug compilation started
2013-11-25T16:43:58.322717+00:00 heroku[api]: Deploy ed36962 by dalberto.adler@gmail.com
2013-11-25T16:43:58.369387+00:00 heroku[api]: Release v18 created by dalberto.adler@gmail.com
2013-11-25T16:43:58+00:00 heroku[slug-compiler]: Slug compilation finished
2013-11-25T16:43:59.550336+00:00 heroku[web.1]: State changed from crashed to starting
2013-11-25T16:44:27.656355+00:00 heroku[web.1]: Starting process with command `gunicorn spritesheetgen.wsgi`
2013-11-25T16:44:28.625250+00:00 app[web.1]: 2013-11-25 16:44:28 [2] [INFO] Listening at: http://0.0.0.0:57632 (2)
2013-11-25T16:44:28.625326+00:00 app[web.1]: 2013-11-25 16:44:28 [2] [INFO] Using worker: sync
2013-11-25T16:44:28.632096+00:00 app[web.1]: 2013-11-25 16:44:28 [7] [INFO] Booting worker with pid: 7
2013-11-25T16:44:28.624290+00:00 app[web.1]: 2013-11-25 16:44:28 [2] [INFO] Starting gunicorn 18.0
2013-11-25T16:44:28.940383+00:00 heroku[web.1]: State changed from starting to up
我的Procfile
看起来像这样
web: gunicorn spritesheetgen.wsgi
我的项目结构看起来像这样(点击来源)
我也尝试过heroku run foreman start
但是
我做了一些谷歌搜索,没有找到任何解决方案我想我错过了一些简单但基本的东西。任何指针赞赏
答案 0 :(得分:1)
事实证明,这不是我的错,而是Heroku的错。某种DNS错误路由问题,在联系后他们为我修好了。
结论如果您可以运行foreman start
来运行本地服务器而且当您执行git push heroku
时heroku不会抱怨,那么它可能不是您的错,您应该通过其网站上的“支持”标签与他们联系。