diff options
-rwxr-xr-x | run | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -5,7 +5,12 @@ import sys import ickweb controller = sys.argv[1] -client_secret = sys.argv[2] -our_url = 'http://localhost:8080' +client_secret_filename = sys.argv[2] +port = int(sys.argv[3]) + +with open(client_secret_filename) as f: + client_secret = f.readline().strip() + +our_url = 'http://localhost:{}'.format(port) app = ickweb.create_app(our_url, controller, client_secret) -app.run(host='localhost', port=8080) +app.run(host='localhost', port=port) |