Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
emfollow
gwcelery
Commits
fb619b98
Commit
fb619b98
authored
Sep 02, 2021
by
Leo P. Singer
Browse files
Fix flask port env var
parent
6d00110a
Changes
3
Hide whitespace changes
Inline
Side-by-side
.bashrc
View file @
fb619b98
...
...
@@ -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
...
...
gwcelery/tests/test_tools_flask.py
View file @
fb619b98
...
...
@@ -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
:
...
...
gwcelery/tools/flask.py
View file @
fb619b98
...
...
@@ -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
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment