if __name__ == "__main__":
    # web.httpserver.runsimple = web.httpserver.runsimple
    web.httpserver.runsimple = web.httpserver.runbasic
    web.run(urls, globals(), web.reloader)

try it :)

On Dec 10, 2007 12:47 AM, [EMAIL PROTECTED] <[EMAIL PROTECTED]>
wrote:

>
> Hi there,
>
> currently I'm working on run my web.py application as cherrypy server
> mode (runsimple) from cgi.
>
> so, there is a cgi file to start web.py server.
>
> -
>
> print "Content-type: text/html\n"
> print """<html>
> <body>Site is restarting...<a href="/">click here to continue<a></
> body></html>
> """
> import os
> import sys
> os.setpgid(os.getpid(), 0) # prevents Apache shutting it down when
> idle for a period of time.
> os.system('nohup ' + sys.executable + ' /myapp.py > /dev/null &')
>
> -
>
> But I found even I call os.system, web.py understand it 'calls from
> web/cgi', so try to run as flup.fcgi mode.
>
> How I can force to run cherrypy server?
>
> Thanks for any advance.
>
> >
>


-- 
http://del.icio.us/iexper
http://twitter.com/qichangxing
http://webpy.org
Gtalk: iexper(at)gmail.com

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

Reply via email to