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.

--~--~---------~--~----~------------~-------~--~----~
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