summaryrefslogtreecommitdiff
path: root/run.py
diff options
context:
space:
mode:
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')))