Skip to content
This repository was archived by the owner on May 2, 2025. It is now read-only.

Commit 43cfc00

Browse files
committed
Add BROKER_URL envvar and celery command
1 parent 2efc5a5 commit 43cfc00

File tree

4 files changed

+12
-2
lines changed

4 files changed

+12
-2
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"programs": {
3+
"flower": {
4+
"command": "celery --broker='%(ENV_BROKER_URL)s' flower --port=5555"
5+
}
6+
}
7+
}
8+

.cookiecutter/includes/tox/setenv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
dev: BROKER_URL = {env:BROKER_URL:amqp://guest:guest@localhost:5672//}

conf/supervisord-dev.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
nodaemon=true
33
silent=true
44

5-
[program:app]
6-
command=python3 -m flower
5+
[program:flower]
6+
command=celery --broker='%(ENV_BROKER_URL)s' flower --port=5555
77
stdout_events_enabled=true
88
stderr_events_enabled=true
99
stopsignal=KILL

tox.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ setenv =
1919
tests: COVERAGE_FILE = {env:COVERAGE_FILE:.coverage.{envname}}
2020
# Make `import flower` work in `make shell`.
2121
dev: PYTHONPATH = .
22+
dev: BROKER_URL = {env:BROKER_URL:amqp://guest:guest@localhost:5672//}
2223
passenv =
2324
HOME
2425
PYTEST_ADDOPTS

0 commit comments

Comments
 (0)