From fec4b9a1c2a5d29c26aaf86e09e7ac556ba77c60 Mon Sep 17 00:00:00 2001 From: Joe Rayhawk Date: Tue, 9 Jun 2015 18:33:12 -0700 Subject: Add optional BCE_ADDR and BCE_PORT Flask overrides. --- run.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'run.py') 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'))) -- cgit v1.2.3