debug cron
This commit is contained in:
@@ -12,7 +12,7 @@ https://docs.djangoproject.com/en/4.0/ref/settings/
|
|||||||
|
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
import os
|
import os
|
||||||
from .server_config import *
|
from Reskreen.server_config import *
|
||||||
|
|
||||||
# Build paths inside the project like this: BASE_DIR / 'subdir'.
|
# Build paths inside the project like this: BASE_DIR / 'subdir'.
|
||||||
BASE_DIR = Path(__file__).resolve().parent.parent
|
BASE_DIR = Path(__file__).resolve().parent.parent
|
||||||
@@ -197,7 +197,7 @@ else:
|
|||||||
'default': {
|
'default': {
|
||||||
'ENGINE': 'django.db.backends.mysql',
|
'ENGINE': 'django.db.backends.mysql',
|
||||||
'OPTIONS': {
|
'OPTIONS': {
|
||||||
'read_default_file': 'Reskreen/my.cnf',
|
'read_default_file': os.path.join(BASE_DIR, 'Reskreen/my.cnf'),
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -1,2 +1,2 @@
|
|||||||
# Exécute la tâche cron toutes les heures
|
# 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
|
||||||
|
Reference in New Issue
Block a user