-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
39 lines (28 loc) · 828 Bytes
/
Makefile
File metadata and controls
39 lines (28 loc) · 828 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
31
32
33
34
35
36
37
38
39
MANAGE = ./server/manage.py
install:
virtualenv env --python python3
. env/bin/activate ; pip install -r requirements.txt
yarn install
run: runserver
redis:
docker start redis-bias-tracker
runserver:
$(MANAGE) runserver
makemigrations:
$(MANAGE) makemigrations
shell:
$(MANAGE) shell
worker:
$(MANAGE) rqworker high default
migrate:
$(MANAGE) migrate
graphql_schema:
$(MANAGE) export_schema > ./client/src/utils/fragmentMatcher/data.json
backup_db:
-cp server/db.sqlite3 server/db`date +'%y.%m.%d-%H:%M:%S'`.sqlite3
load_prod: backup_db
-rm server/db.sqlite3
heroku run $(MANAGE) dumpdata --natural-primary --natural-foreign -- > dump.json
python server/manage.py migrate --noinput
HAYSTACK_SIGNAL_PROCESSOR=haystack.signals.BaseSignalProcessor python server/manage.py loaddata dump.json
rm dump.json