-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
53 lines (38 loc) · 1.18 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
46
47
48
49
50
51
52
53
build:
docker build -t mantiby/semkov:latest .
deploy:
docker container stop semkov-wagtail
docker container rm semkov-wagtail
docker compose up -d
static:
docker exec -it semkov-wagtail python manage.py collectstatic --no-input
migrate:
docker exec -it semkov-wagtail python manage.py migrate
bash:
docker exec -it semkov-wagtail bash
send_email:
docker exec -it semkov-wagtail python manage.py send_email
dump:
docker exec -it semkov-postgres pg_dump -U semkov -d semkov > database.sql
restore:
docker cp database.sql semkov-postgres:/tmp/database.sql
docker exec -it semkov-postgres psql -U semkov semkov -f /tmp/database.sql
update-data:
./manage.py update_transport
./manage.py update_positions
upload-data:
scp -r data/* amon-ra:/mnt/data/www/semkov/data/
update:
pcu requirements.txt -u
pre-commit autoupdate
pip:
pip install -r requirements.txt
test:
pytest --create-db --disable-warnings --ds=semkov.settings.test semkov/
check:
git add .
pre-commit run
django-check:
./manage.py makemigrations --dry-run --check --verbosity=3 --settings=semkov.settings.test
./manage.py check --fail-level WARNING --settings=semkov.settings.test
ci: pip check django-check test