diff options
author | Joe Rayhawk <jrayhawk@omgwallhack.org> | 2015-06-09 18:33:12 -0700 |
---|---|---|
committer | Joe Rayhawk <jrayhawk@omgwallhack.org> | 2015-06-09 18:33:12 -0700 |
commit | fec4b9a1c2a5d29c26aaf86e09e7ac556ba77c60 (patch) | |
tree | 6ec8b368748f395165387c31245ef3ff03a27eb7 | |
parent | e554bc0fa594855f73091ef9ed345ff1f2e3aef4 (diff) | |
download | rpcblockchainexplorer-master.tar.gz rpcblockchainexplorer-master.zip |
-rw-r--r-- | README.md | 3 | ||||
-rw-r--r-- | run.py | 4 |
2 files changed, 6 insertions, 1 deletions
@@ -12,6 +12,9 @@ Optionally, rpcconnect (rpc listening address) and rpcport may be defined. Notably, the documented recommended command line for alphad configures it to listen on a nondefault port. +The BCE_ADDR and BCE_PORT environment variables can be used to override the +default http server address and port binding of 127.0.0.1:5000. + # license BSD @@ -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'))) |