-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
45 lines (34 loc) · 1.05 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Installs dependencies
install:
pipenv install
# Runs application
run:
python asgi_server.py
# Runs the application with reload flag set
run-reload:
uvicorn app:app --port 5000 --reload
# Runs Email worker
run-email-worker:
celery -A app.worker.celery_app worker --events -l info -n barua-pepe-mailer-worker@%n --concurrency=5 -Q barua-queue
# Runs Email Error worker
run-error-worker:
celery -A app.worker.celery_app worker --events -l info -n barua-pepe-dlt-worker@%n --concurrency=5 -Q barua-error-queue
# Runs Analytics worker
run-analytics-worker:
celery -A app.worker.celery_app worker --events -l info -n barua-pepe-analytics-worker@%n --concurrency=5 -Q barua-analytics-queue
# Runs tests
test:
pytest
# Runs tests with coverage
test-cover:
pytest --cov=app tests/
# Runs a local SMTP debugging server which will print out the message in the terminal window & discard them. This allows
# for local testing
smtp-server:
python -m smtpd -c DebuggingServer -n localhost:1025
format:
black app
lint:
pylint app
load-test:
locust --config .locust.conf