Skip to content

Commit 0312590

Browse files
committed
Cambios en servidor
1 parent 2882b6f commit 0312590

File tree

3 files changed

+16
-4
lines changed

3 files changed

+16
-4
lines changed

apps/certificates/management/commands/create_certificate.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
from django.core.management.base import BaseCommand
44

5-
from certificates.utils import create_certificate
6-
from tickets.models import Ticket
5+
from apps.certificates.utils import create_certificate
6+
from apps.tickets.models import Ticket
77

88

99
class Command(BaseCommand):

deploy.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ npm install --no-save
88
gulp
99
python manage.py migrate
1010
python manage.py collectstatic --noinput --clear
11-
supervisorctl restart web
1211
supervisorctl restart rq
12+
supervisorctl restart web

justfile

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
check:
33
python manage.py check
44
flake8 --count **/*.py
5-
vulture .
5+
# vulture . --exclude node_modules/
66

77

88
# Borrar ficheros temporales y espurios
@@ -42,3 +42,15 @@ static:
4242
# [Re]crear el fichero ctags
4343
tags:
4444
ctags -R [email protected] .
45+
46+
# Ejecutar los test pasados como paræmetro (Empezará por el último que haya fallado)
47+
test *args='.':
48+
python3 -m pytest --failed-first -vv -x --log-cli-level=INFO --doctest-modules -m "not slow" {{ args }}
49+
50+
# Muestra información del Harware / S.O. / Python / Django
51+
info:
52+
@echo "This is an {{arch()}} machine"
53+
@echo "OS: {{os()}} / {{os_family()}}"
54+
python3 -V
55+
python3 -c "import django; print(django.__version__)"
56+
uptime

0 commit comments

Comments
 (0)