-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
38 lines (29 loc) · 794 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
30
31
32
33
34
35
36
37
38
.PHONY: install
install:
poetry install
.PHONY: install-pre-commit
install-pre-commit:
poetry run pre-commit uninstall; poetry run pre-commit install
.PHONY: lint
lint:
poetry run pre-commit run --all-files
.PHONY: migrations
migrations:
poetry run python3 -m backend.manage makemigrations
.PHONY: migrate
migrate:
poetry run python3 -m backend.manage migrate
.PHONY: run-server
run-server:
poetry run python3 -m backend.manage runserver
.PHONY: shell
shell:
poetry run python -m backend.manage shell
.PHONY: superuser
superuser:
poetry run python3 -m backend.manage createsuperuser
.PHONY: update
update: install migrate install-pre-commit ;
.PHONY: local-settings
local-settings:
mkdir -p local; cp ./backend/UnTube/settings/templates/settings.dev.py ./local/settings.dev.py