Ejemplo n.º 1
0
 def web_server_context(self, config):
     from infi.app_repo.webserver import start
     webserver = start(config)
     try:
         yield
     finally:
         webserver.close()
Ejemplo n.º 2
0
 def web_server_context(self, config):
     from infi.app_repo.webserver import start
     webserver = start(config)
     try:
         yield
     finally:
         webserver.close()
Ejemplo n.º 3
0
def ftp_server(config, signal_upstart):
    from infi.app_repo.ftpserver import start
    ftpserver = start(config)
    if signal_upstart:
        from infi.app_repo.upstart import signal_init_that_i_am_ready
        signal_init_that_i_am_ready()
    ftpserver.serve_forever()
    ftpserver.close_all()
Ejemplo n.º 4
0
def web_server(config, signal_upstart):
    from infi.app_repo.webserver import start
    webserver = start(config)
    if signal_upstart:
        from infi.app_repo.upstart import signal_init_that_i_am_ready
        signal_init_that_i_am_ready()
    webserver.serve_forever()
    webserver.close()
Ejemplo n.º 5
0
def ftp_server(config, signal_upstart):
    from infi.app_repo.ftpserver import start
    ftpserver = start(config)
    if signal_upstart:
        from infi.app_repo.upstart import signal_init_that_i_am_ready
        signal_init_that_i_am_ready()
    ftpserver.serve_forever()
    ftpserver.close_all()
Ejemplo n.º 6
0
 def web_server_context(self, config):
     from gevent import monkey
     monkey.patch_thread()
     from infi.app_repo.webserver import start
     webserver = start(config)
     try:
         yield
     finally:
         webserver.close()
Ejemplo n.º 7
0
def web_server(config, signal_upstart):
    from gevent import monkey
    monkey.patch_thread()
    from infi.app_repo.webserver import start
    webserver = start(config)
    if signal_upstart:
        from infi.app_repo.upstart import signal_init_that_i_am_ready
        signal_init_that_i_am_ready()
    webserver.serve_forever()
    webserver.close()
Ejemplo n.º 8
0
def ftp_server(config):
    from infi.app_repo.ftpserver import start
    ftpserver = start(config)
    ftpserver.serve_forever()
    ftpserver.close_all()
Ejemplo n.º 9
0
def web_server(config):
    from infi.app_repo.webserver import start
    webserver = start(config)
    webserver.serve_forever()
    webserver.close()