running tiddlyweb under fcgi

19 views
Skip to first unread message

Peter Neumark

unread,
Feb 2, 2012, 8:29:01 AM2/2/12
to tiddlyweb
In the tiddlyweb documentation, it says fcgi is untested.
(specifically: http://tiddlyweb.peermore.com/wiki/bags/docs/tiddlers/Using%20Fast%20CGI
)

I got it to work today, based on the cgi installation instructions.
My index.fcgi:

import os
import sys
from flup.server.fcgi import WSGIServer
from wsgiref.handlers import BaseCGIHandler
from tiddlyweb.web import serve

tiddlywebconfig_dir = '...'
os.chdir(tiddlywebconfig_dir)
sys.path.insert(0, tiddlywebconfig_dir)


def start():
app = serve.load_app(app_prefix='')
WSGIServer(app).run()

if __name__ == '__main__':
start()

Hope someone finds it useful,
Peter

chris...@gmail.com

unread,
Feb 2, 2012, 9:29:40 AM2/2/12
to tiddlyweb
On Thu, 2 Feb 2012, Peter Neumark wrote:

> In the tiddlyweb documentation, it says fcgi is untested.
> (specifically: http://tiddlyweb.peermore.com/wiki/bags/docs/tiddlers/Using%20Fast%20CGI
> )
>
> I got it to work today, based on the cgi installation instructions.

Thanks, I've udpated the docs.

--
Chris Dent http://burningchrome.com/
[...]

Reply all
Reply to author
Forward
0 new messages