mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-09-27 08:18:11 +08:00
Use url_root from Flask rather than hardcoding hostname. (#520)
Allows running in a container on a remote host, should also allow running behind a proxy with a url prefix.
This commit is contained in:
committed by
Charlotte Weaver
parent
bd523280a4
commit
f2eb2cad82
@@ -117,12 +117,11 @@ def launch(
|
||||
|
||||
# Setup app
|
||||
cellxgene_url = f"http://{host}:{port}"
|
||||
api_base = f"{cellxgene_url}/api/"
|
||||
|
||||
# Import Flask app
|
||||
from server.app.app import app
|
||||
|
||||
app.config.update(DATASET_TITLE=title, CXG_API_BASE=api_base)
|
||||
app.config.update(DATASET_TITLE=title)
|
||||
|
||||
if not verbose:
|
||||
log = logging.getLogger("werkzeug")
|
||||
|
||||
Reference in New Issue
Block a user