#12 introduce GATEWAY_PORT, rename GATEWAY_HOST and GATEWAY_PROTOCOL to EXTERNAL_HOST and EXTERNAL_PROTOCOL

Keep GATEWAY_HOST and GATEWAY_PROTOCOL for backwards compatibility (for now)
This commit is contained in:
Alok Saldanha
2019-11-17 19:03:47 -05:00
parent 91c9607808
commit 9532375eb0
6 changed files with 15 additions and 19 deletions
+2 -2
View File
@@ -37,7 +37,7 @@ from cellxgene_gateway.util import current_time_stamp
app = Flask(__name__)
cache = BackendCache()
location = f"{env.gateway_protocol}://{env.gateway_host}"
location = f"{env.external_protocol}://{env.external_host}"
@app.errorhandler(CellxgeneException)
@@ -232,7 +232,7 @@ def main():
background_thread.start()
app.launchtime = current_time_stamp()
app.run(host="0.0.0.0", port=5005, debug=False)
app.run(host="0.0.0.0", port=env.gateway_port, debug=False)
if __name__ == "__main__":