GeezerVison is showing github.com — Merge pull request #5793 from bjester/forking-macs · learningequality/studio@021c2f4
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: Makefile +3-2Lines changed: 3 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
1 | 1 | # standalone install method |
2 | 2 | DOCKER_COMPOSE ?= docker-compose |
| 3 | +CELERY = cd contentcuration/ && celery -A contentcuration worker -l info --concurrency=3 --task-events |
3 | 4 |
|
4 | 5 | # support new plugin installation for docker-compose |
5 | 6 | ifeq (, $(shell command -v docker-compose 2>/dev/null)) |
@@ -16,7 +17,7 @@ altprodserver: collectstatic compilemessages |
16 | 17 | cd contentcuration/ && gunicorn contentcuration.wsgi:application --timeout=4000 --error-logfile=/var/log/gunicorn-error.log --workers=${NUM_PROCS} --threads=${NUM_THREADS} --bind=0.0.0.0:8081 --pid=/tmp/contentcuration.pid --log-level=debug || sleep infinity |
17 | 18 |
|
18 | 19 | prodceleryworkers: |
19 | | - cd contentcuration/ && celery -A contentcuration worker -l info --concurrency=3 --task-events |
| 20 | + $(CELERY) |
20 | 21 |
|
21 | 22 | collectstatic: |
22 | 23 | python contentcuration/manage.py collectstatic --noinput |
@@ -147,7 +148,7 @@ purge-postgres: .docker/pgpass |
147 | 148 | destroy-and-recreate-database: purge-postgres setup |
148 | 149 |
|
149 | 150 | devceleryworkers: |
150 | | - $(MAKE) -e DJANGO_SETTINGS_MODULE=contentcuration.dev_settings prodceleryworkers |
| 151 | + DJANGO_SETTINGS_MODULE=contentcuration.dev_settings $(CELERY) --pool=threads |
151 | 152 |
|
152 | 153 | run-services: |
153 | 154 | $(MAKE) -j 2 dcservicesup devceleryworkers |
|