I installed quixote and medusa. I'm successfully able to run quixote through
the cgi interface. But am having problems when I run the medusa_http server.
My main looks like this:
def main ():
from quixote import enable_ptl
enable_ptl()
if len(sys.argv) == 2:
port = int(sys.argv[1])
else:
port = 8080
print 'Now serving the Quixote demo on port %d' % port
server = http_server.http_server('', port)
publisher = Publisher('quixote.demo')
# When initializing the Publisher in your own driver script,
# you'll want to parse a configuration file.
publisher.read_config("c:/appservers/quixote-1.0c1/demo/demo.conf")
publisher.setup_logs()
dh = QuixoteHandler(publisher, 'Quixote/demo', server)
server.install_handler(dh)
asyncore.loop()
The server starts up and apparently shuts down:
C:\appservers\Quixote-1.0c1\server>medusa_http.py
Now serving the Quixote demo on port 8080
warning: Computing default hostname
info: Medusa (V1.11) started at Fri Jun 18 09:32:13 2004
Hostname: vinjvinj
Port:8080
C:\appservers\Quixote-1.0c1\server>
It does not stay in the background and shuts down immedaitely without giving
an error message
I'm on windows XP with python 2.3.3 and medusa 0.5.4. Any idea on what I
could be doing wrong?
Thanks,
Vineet