本週我使用Facebook的龍捲風框架,而且我有時在互聯網不明顯的地方。由於website在回購中,我怎樣才能讓它在本地運行?它在AppEngine下嗎?在本地運行龍捲風文檔
我第一次跑了我沒有看裏面,所以我只是做了,
python website.py
這給了以下良好,
Traceback (most recent call last):
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/wsgiref/handlers.py", line 93, in run
self.result = application(self.environ, self.start_response)
File "/Users/phwd/tornado/website/tornado/wsgi.py", line 90, in __call__
handler = web.Application.__call__(self, HTTPRequest(environ))
File "/Users/phwd/tornado/website/tornado/wsgi.py", line 107, in __init__
self.method = environ["REQUEST_METHOD"]
KeyError: 'REQUEST_METHOD'
Status: 500 Dude, this is whack!
Content-Type: text/plain
Content-Length: 59
哦好了,所以它使用WSGI的.py?我試圖從谷歌應用程序引擎,而不是調用它,
dev_appserver.py .
它開始的第一頁,但只要我偷看到主文檔
ERROR 2011-10-07 17:26:59,566 dev_appserver.py:3360] Error encountered reading file "/Users/phwd/tornado/website/sphinx/build/html/index.html":
[Errno 2] No such file or directory: '/Users/phwd/tornado/website/sphinx/build/html/index.html'
INFO 2011-10-07 17:26:59,574 dev_appserver.py:4247] "GET /documentation/index.html HTTP/1.1" 404
有什麼我需要與獅身人面像做對在Tornado Web服務器上獲得本地文檔工作?那裏有一個conf.py文件,所以不是已經安裝好了嗎?
如何運行網站應用程序以及我需要使用哪些必要的依賴關係?
沒有HTML做到這一點很遺憾,所以我會得到「沒有規則,使目標」,在Makefile中有'獅身人面像建造-b HTML $(SPHINXOPTS)獅身人面像/建設/ html' ,那麼下一步將是'make html'否?我將嘗試從主服務器獲取最新版本,以查看是否會改變任何內容。爲什麼文檔在服務器上?不知道......我在想同樣的事情,而我在這裏。我可能會因爲挫折而在tornadoweb.org上使用wget。 – phwd