[英]Heroku django no such app
我已經按照django入門指南逐字逐句地介紹了Heroku | No app
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
但是
我做了很多谷歌搜索,沒有找到任何解決方案,我想我缺少了一些簡單但基本的東西。 任何指針贊賞
事實證明,這不是我的錯,而是Heroku的錯。 某種DNS錯誤路由問題,在與他們聯系后便為我修復了。
結論如果可以運行foreman start
則可以運行本地服務器,並且在執行git push heroku
時heroku不會抱怨,那么可能不是您的錯,您應該通過其網站上的“支持”選項卡與他們聯系。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.