summaryrefslogtreecommitdiff
path: root/run
blob: 62b994aa126e937212d660ef17ade35a9f225f61 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/env python3

import sys

import ickweb

controller = sys.argv[1]
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=port)