-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
45 lines (36 loc) · 1.07 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
reset:
rm scripts/db.sqlite3 -f
pip install -r requirements/local.txt
find opencourse/courses/migrations/ -name '00*.py' -delete
find opencourse/profiles/migrations/ -name '00*.py' -delete
./manage.py makemigrations
./manage.py migrate
./manage.py runscript auth_data
./manage.py runscript opencourse_data
translate:
./manage.py makemessages -i venv -i */account
./manage.py compilemessages -i venv -l fr
dumpdb:
./manage.py dumpscript courses profiles account.EmailAddress > scripts/db_dump.py
deploy:
git fetch origin master
git reset origin/master --hard
pip install -r requirements/production.txt
./manage.py compilemessages -i venv
./manage.py collectstatic --noinput
./manage.py migrate
systemctl restart nginx gunicorn.socket gunicorn.service gunicorn
migr:
./manage.py makemigrations
./manage.py migrate
blankdb:
rm db.sqlite3 -f
./manage.py makemigrations
./manage.py migrate
./manage.py runscript help_data
testdb:
rm db.sqlite3 -f
./manage.py makemigrations
./manage.py migrate
./manage.py runscript help_data
./manage.py runscript opencourse_data