forked from upkoding/upkoding
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (21 loc) · 741 Bytes
/
Makefile
File metadata and controls
30 lines (21 loc) · 741 Bytes
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
export DOCKER_BUILDKIT=1
migrations:
docker-compose run --rm web python manage.py makemigrations
migrate:
docker-compose run --rm web python manage.py migrate
createsuperuser:
docker-compose run --rm web python manage.py createsuperuser
test:
docker-compose run --rm web python manage.py test
ssh:
docker-compose run --rm web bash
pip-compile:
docker-compose run --rm web sh -c "pip install pip-tools && pip-compile"
# make runserver: only start `db` and `web` by default.
runserver:
docker-compose up web
# make runstatic: only needed when you want to make some changes to JS, SCSS or adding other assets.
runstatic:
docker-compose up static
buildstatic:
docker-compose run --rm static sh -c "npm install && npm run build"