1
0
mirror of https://github.com/kakwa/ldapcherry synced 2024-11-22 09:24:21 +01:00

turnoff the check for configuration file

This commit is contained in:
kakwa 2015-07-31 20:07:45 +02:00
parent af4936f157
commit 8c0cbaac3b

View File

@ -51,6 +51,9 @@ def start(configfile=None, daemonize=False, environment=None,
engine = cherrypy.engine engine = cherrypy.engine
# Turn off autoreload
cherrypy.config.update({'engine.autoreload.on': False})
if environment is not None: if environment is not None:
cherrypy.config.update({'environment': environment}) cherrypy.config.update({'environment': environment})
@ -73,8 +76,6 @@ def start(configfile=None, daemonize=False, environment=None,
"scgi options.", 'ENGINE') "scgi options.", 'ENGINE')
sys.exit(1) sys.exit(1)
elif fastcgi or scgi or cgi: elif fastcgi or scgi or cgi:
# Turn off autoreload when using *cgi.
cherrypy.config.update({'engine.autoreload_on': False})
# Turn off the default HTTP server (which is subscribed by default). # Turn off the default HTTP server (which is subscribed by default).
cherrypy.server.unsubscribe() cherrypy.server.unsubscribe()