summaryrefslogtreecommitdiff
path: root/muck_poc
diff options
context:
space:
mode:
Diffstat (limited to 'muck_poc')
-rwxr-xr-xmuck_poc6
1 files changed, 4 insertions, 2 deletions
diff --git a/muck_poc b/muck_poc
index 0e37c41..e0b1729 100755
--- a/muck_poc
+++ b/muck_poc
@@ -1,5 +1,5 @@
#!/usr/bin/env python3
-# Copyright (C) 2018 Lars Wirzenius
+# Copyright (C) 2018-2019 Lars Wirzenius
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
@@ -250,6 +250,8 @@ if config.get('pid'):
with open(config['pid'], 'w') as f:
f.write(str(pid))
+port = config.get('port', 12765)
+
app = bottle.default_app()
api = MuckAPI(app, store, signing_key_text)
-bottle.run(host='127.0.0.1', port=12765)
+bottle.run(host='127.0.0.1', port=port)