summaryrefslogtreecommitdiff
path: root/run
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2018-08-05 13:13:03 +0300
committerLars Wirzenius <liw@liw.fi>2018-08-05 13:13:03 +0300
commit67585afaf4cb67877991ad41d5d85096d586cbf6 (patch)
tree5589c6cea14e149887f2aa38d0c657df45a4b467 /run
parenta46a46858072db5f5ca5a5ae3df203de545c26d0 (diff)
downloadickweb-67585afaf4cb67877991ad41d5d85096d586cbf6.tar.gz
Change: parameterise, work with current Qvisqve
Diffstat (limited to 'run')
-rwxr-xr-xrun6
1 files changed, 5 insertions, 1 deletions
diff --git a/run b/run
index 0d1f411..36edf48 100755
--- a/run
+++ b/run
@@ -1,5 +1,9 @@
#!/usr/bin/env python3
+import sys
+
import ickweb
-ickweb.create_app().run(host='localhost', port=8080)
+controller = sys.argv[1]
+our_url = 'http://localhost:8080'
+ickweb.create_app(our_url, controller).run(host='localhost', port=8080)