-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
40 lines (32 loc) · 936 Bytes
/
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
debug: build
docker compose run --service-ports --rm app
shell: build
docker compose run --service-ports --rm app bash
build:
docker compose build
logs:
docker compose logs --tail 30 -f
# Run in production mode locally, to test uWSGI
run-local-as-prod:
docker build -t mesads .
docker run --rm -ti \
--network mesads_default \
-e DEBUG=false \
-e ALLOWED_HOSTS=* \
-e SECRET_KEY=f981nfwnefnaipofnioadnsfipn198 \
-e AWS_S3_ENDPOINT_URL=http://invalids3 \
-e AWS_S3_ACCESS_KEY_ID=invalid \
-e AWS_S3_SECRET_ACCESS_KEY=invalid \
-e AWS_STORAGE_BUCKET_NAME=invalids3bucket \
-p 9401:8000 \
mesads
### To run from container ###
test:
flake8 mesads
coverage run --source=. manage.py test
coverage report -m
# Tests without coverage
fasttest:
pytest --testmon -v -x -s
update-requirements:
for package in $$(poetry show --outdated --only main | awk '{print $$1}'); do poetry add "$$package@latest"; done