diff options
-rw-r--r-- | service/pixelated/runserver.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/service/pixelated/runserver.py b/service/pixelated/runserver.py index ac3dee94..13ccd40f 100644 --- a/service/pixelated/runserver.py +++ b/service/pixelated/runserver.py @@ -56,6 +56,7 @@ def register(username, server_name): except LeapAuthException: print('User already exists') + def setup_debugger(enabled): debug_enabled = enabled or os.environ.get('DEBUG', False) if not debug_enabled: @@ -63,6 +64,7 @@ def setup_debugger(enabled): logger = logging.getLogger('werkzeug') logger.setLevel(logging.INFO) + def configuration_setup(app, config): if config is not None: config_file = os.path.abspath(os.path.expanduser(config)) @@ -73,6 +75,7 @@ def configuration_setup(app, config): app.config['LEAP_USERNAME'] = user app.config['LEAP_PASSWORD'] = password + def start_services(app, debug): reactor_manager.start_reactor(logging=debug) events_server.ensure_server(port=8090) |