Commit fb619b98 authored by Leo P. Singer's avatar Leo P. Singer
Browse files

Fix flask port env var

parent 6d00110a
......@@ -32,7 +32,7 @@ export X509_USER_CERT="$HOME/.globus/usercert.pem"
export X509_USER_KEY="$HOME/.globus/userkey.pem"
# Configuration for GWCelery web applications.
export FLASK_PORT=5556
export FLASK_RUN_PORT=5556
export FLASK_URL_PREFIX=/gwcelery
export FLOWER_PORT=5555
export FLOWER_URL_PREFIX=/flower
......
......@@ -10,7 +10,7 @@ def test_flask_run(monkeypatch):
"""Test starting the Flask server from the command line."""
mock_run_simple = Mock()
monkeypatch.setattr('werkzeug.serving.run_simple', mock_run_simple)
monkeypatch.setenv('FLASK_PORT', '5556')
monkeypatch.setenv('FLASK_RUN_PORT', '5556')
monkeypatch.setattr(celery_app.log, 'setup', Mock())
with pytest.raises(SystemExit) as excinfo:
......
......@@ -21,7 +21,8 @@ def maybe_detached(*, detach, **kwargs):
return detached(**kwargs) if detach else nullcontext()
@click.group(cls=CeleryDaemonFlaskGroup, help=__doc__)
@click.group(cls=CeleryDaemonFlaskGroup, help=__doc__,
context_settings={'auto_envvar_prefix': 'FLASK'})
@click.option('-D',
'--detach',
cls=CeleryOption,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment