I've installed an application that uses web.py (I pulled web.py
headrevs today) and it works fine standalone with the built in web
server.

I'm using a VPS, HostGator and they support FastCGI. I managed to get
FastCGI+flup going with a Hello World app.

I couldn't get the app to work with web.py with HostGator with the out
of box code.

I've ended up hacking web.py to make this application work... don't
know much about FastCGI but I'm pretty sure I shouldn't be doing
that ;-) I'm trying to work out what I should be doing

Hack 1 - the "which cgi" check appear to not work for me in
wsgi.runwsgi(), I did NOT debug this very far and simply hacked
application.run() to call wsgi.runfcgi() instead.

Hack 2 - fastcgi call wasn't work either, so I converted from:

    def runfcgi(func, addr=('localhost', 8000)):
        """Runs a WSGI function as a FastCGI server."""
        import flup.server.fcgi as flups
        return flups.WSGIServer(func, multiplexed=True,
bindAddress=addr, debug=False).run()

To
        ....
        return flups.WSGIServer(func).run()

For some reason the error.log from my VPS provider wasn't very
helpful. I'm sure most of this is due to my inexperience with the
setup on the machine I'm using.

Again, I'm working fine now but I'm trying to work out what I should
have done :-)

Chris

-- 
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To post to this group, send email to webpy@googlegroups.com.
To unsubscribe from this group, send email to 
webpy+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/webpy?hl=en.

Reply via email to