debug cron

This commit is contained in:
2024-04-12 17:33:26 +02:00
parent 3682d1c907
commit c1f7eafbf2
2 changed files with 3 additions and 3 deletions

View File

@@ -12,7 +12,7 @@ https://docs.djangoproject.com/en/4.0/ref/settings/
from pathlib import Path
import os
from .server_config import *
from Reskreen.server_config import *
# Build paths inside the project like this: BASE_DIR / 'subdir'.
BASE_DIR = Path(__file__).resolve().parent.parent
@@ -197,7 +197,7 @@ else:
'default': {
'ENGINE': 'django.db.backends.mysql',
'OPTIONS': {
'read_default_file': 'Reskreen/my.cnf',
'read_default_file': os.path.join(BASE_DIR, 'Reskreen/my.cnf'),
},
}
}

View File

@@ -1,2 +1,2 @@
# Exécute la tâche cron toutes les heures
* * * * * cd /app && python /app/manage.py runcrons > /var/log/runcrons.logs
* * * * * cd /app && python /app/manage.py runcrons > /var/log/runcrons.log