summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xrun11
1 files changed, 8 insertions, 3 deletions
diff --git a/run b/run
index 9eee9e7..62b994a 100755
--- a/run
+++ b/run
@@ -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)