-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
46 lines (35 loc) · 812 Bytes
/
Makefile
File metadata and controls
46 lines (35 loc) · 812 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
40
41
42
43
44
45
46
iniciar:
@pipenv install
ejecutar:
@pipenv run python manage.py runserver
ejecutar_worker:
@pipenv run python manage.py rqworker
crear_migraciones:
@pipenv run python manage.py makemigrations
migrar:
@pipenv run python manage.py migrate --noinput
test:
@echo "${G}Ejecutando tests ...${N}"
ifeq ($(filtro),)
pipenv run pytest
else
pipenv run pytest -k $(filtro)
endif
test_live:
ifeq ($(filtro),)
pipenv run ptw
else
pipenv run ptw -- -k $(filtro)
endif
reset:
dropdb --if-exists tca -e; createdb tca
pipenv run python manage.py migrate --noinput
build_requirements:
@pipenv lock -r > requirements.txt
cat requirements.txt
collectstatic:
pipenv run python manage.py collectstatic
deploy:
sudo git push heroku master
migrar_en_prod:
sudo heroku run python manage.py migrate --noinput