summaryrefslogtreecommitdiff
path: root/run.py
diff options
context:
space:
mode:
authorJoe Rayhawk <jrayhawk@omgwallhack.org>2015-06-09 18:33:12 -0700
committerJoe Rayhawk <jrayhawk@omgwallhack.org>2015-06-09 18:33:12 -0700
commitfec4b9a1c2a5d29c26aaf86e09e7ac556ba77c60 (patch)
tree6ec8b368748f395165387c31245ef3ff03a27eb7 /run.py
parente554bc0fa594855f73091ef9ed345ff1f2e3aef4 (diff)
downloadrpcblockchainexplorer-fec4b9a1c2a5d29c26aaf86e09e7ac556ba77c60.tar.gz
rpcblockchainexplorer-fec4b9a1c2a5d29c26aaf86e09e7ac556ba77c60.zip
Add optional BCE_ADDR and BCE_PORT Flask overrides.HEADmaster
Diffstat (limited to 'run.py')
-rw-r--r--run.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/run.py b/run.py
index 2d9c07e..437860e 100644
--- a/run.py
+++ b/run.py
@@ -1,3 +1,5 @@
+import os
+
from rpcblockchainexplorer.flaskapp import create_app
app = create_app()
-app.run(debug=True)
+app.run(debug=True, host=os.environ.get('BCE_ADDR','127.0.0.1'), port=int(os.environ.get('BCE_PORT','5000')))