From c1f7eafbf2c1e3398366ecc7121dc4133110dd29 Mon Sep 17 00:00:00 2001 From: Kirosbr Date: Fri, 12 Apr 2024 17:33:26 +0200 Subject: [PATCH] debug cron --- Reskreen/settings.py | 4 ++-- crons_jobs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Reskreen/settings.py b/Reskreen/settings.py index 191bf08..e9e4b0d 100644 --- a/Reskreen/settings.py +++ b/Reskreen/settings.py @@ -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'), }, } } diff --git a/crons_jobs b/crons_jobs index ee60243..f365558 100644 --- a/crons_jobs +++ b/crons_jobs @@ -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