diff options
author | Patrick Maia and Victor Shyba <pixelated-team+pmaia+vshyba@thoughtworks.com> | 2014-11-26 13:35:08 -0300 |
---|---|---|
committer | Patrick Maia <pmaia@thoughtworks.com> | 2014-11-27 17:05:08 -0300 |
commit | 98d5996497530a1069e227f6c9933789c001af30 (patch) | |
tree | 390fe69bf4d1ae998141c5cc075a74f5d02fc8b5 /service/pixelated/runserver.py | |
parent | 16c1d14808330f23bcfa7f186124533c13b44ddc (diff) |
Card #149 - enables https on service
Diffstat (limited to 'service/pixelated/runserver.py')
-rw-r--r-- | service/pixelated/runserver.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/service/pixelated/runserver.py b/service/pixelated/runserver.py index 5f30913b..b53a682b 100644 --- a/service/pixelated/runserver.py +++ b/service/pixelated/runserver.py @@ -19,13 +19,11 @@ import sys import logging import json from klein import Klein -from twisted.python.log import ILogObserver klein_app = Klein() import ConfigParser from twisted.python import log -import sys from leap.common.events import server as events_server from pixelated.config import app_factory import pixelated.config.args as input_args @@ -59,7 +57,7 @@ def setup(): app.config['LEAP_PASSWORD'] = config['password'] else: configuration_setup(args.config) - start_services(args.host, args.port) + start_services(args) def register(username, server_name): @@ -122,9 +120,9 @@ def configuration_setup(config_file): app.config['LEAP_PASSWORD'] = password -def start_services(bind_address, bind_port): +def start_services(args): events_server.ensure_server(port=8090) - app_factory.create_app(app, bind_address, bind_port) + app_factory.create_app(app, args) if __name__ == '__main__': |