forked from KatanaKarl/whataboutantennas
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
29 lines (20 loc) · 932 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
install:
docker-compose exec cms bash -c 'pip3 install -r requirements.txt'
install_nuxt:
docker-compose run --rm nuxt bash -c 'rm -fr node_modules && yarn install --force'
migrate:
docker-compose exec cms bash -c 'python3 manage.py makemigrations'
docker-compose exec cms bash -c 'python3 manage.py migrate'
createsuperuser:
docker-compose exec cms bash -c "python3 manage.py createsuperuser"
backup:
docker-compose exec cms bash -c 'python3 manage.py dumpdata --natural-foreign --indent 2 \
-e contenttypes -e auth.permission \
-e wagtailcore.groupcollectionpermission \
-e wagtailcore.grouppagepermission -e wagtailimages.rendition \
-e sessions -e wagtailcore.site > fixtures.json'
load:
docker-compose exec cms bash -c 'python3 manage.py loaddata fixtures.json'
deletewagtailimages:
docker-compose exec cms bash -c 'python3 manage.py delete_all_wagtail_images'
initial: migrate createsuperuser