mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-10-07 14:58:11 +08:00
Remove redundant app start
This commit is contained in:
@@ -24,6 +24,7 @@ CXG_API_BASE = os.environ.get("CXG_API_BASE2", default="http://0.0.0.0:5005/api/
|
|||||||
if not CONFIG_FILE:
|
if not CONFIG_FILE:
|
||||||
raise ValueError("No config file set for Flask application")
|
raise ValueError("No config file set for Flask application")
|
||||||
|
|
||||||
|
# TODO check what is actually being configured here
|
||||||
app.config.from_pyfile(os.path.join(CXG_DIR, "config", CONFIG_FILE), silent=True)
|
app.config.from_pyfile(os.path.join(CXG_DIR, "config", CONFIG_FILE), silent=True)
|
||||||
app.config.update(
|
app.config.update(
|
||||||
SECRET_KEY=SECRET_KEY,
|
SECRET_KEY=SECRET_KEY,
|
||||||
@@ -58,7 +59,3 @@ app.register_blueprint(
|
|||||||
|
|
||||||
|
|
||||||
app.add_url_rule('/', endpoint='index')
|
app.add_url_rule('/', endpoint='index')
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
|
||||||
app.run(host='0.0.0.0', debug=True, port=5005)
|
|
||||||
|
|||||||
Reference in New Issue
Block a user