I've run simple app on lighty (via fcgi) and it works.
App:
#!/usr/bin/env python
from juno import run, get
@get('/')
def index(web):
return "hello form lighty"
run('fcgi')
Lighty conf:
$HTTP["host"] =~ "^trac\.pagenoare\.net$" {
fastcgi.server = (
"/main" => (
(
"bin-path" => "/home/pagenoare/www/
pagenoare.net/trac/main.py",
"socket" => "/tmp/juno.sock",
"check-local" => "disable",
"disable-time" => 1,
"min-procs" => 1,
"max-procs" => 1,
),
),
)
}
Diff of juno.py:
--- juno.py.tmp 2009-06-01 16:34:52.000000000 +0200
+++ juno.py 2009-06-01 16:26:31.000000000 +0200
@@ -770,7 +770,7 @@
def run_fcgi(addr, port, process_func):
from flup.server.fcgi import WSGIServer as FCGI
app = get_application(process_func)
- FCGI(app, bindAddress=(addr, port)).run()
+ FCGI(app).run()
def run_wsgi(process_func):
sys.stdout = sys.stderr
Regards,
Kacper.