This commit is contained in:
Tibor Bossanyi (Freelancer) 2021-09-17 17:45:29 +02:00
parent 02e39f1811
commit b8072b6459
4 changed files with 5 additions and 7 deletions

View File

@ -160,6 +160,6 @@ LOGGING = {
CRON_CLASSES = [ CRON_CLASSES = [
'controlling.cron.cron.MyCronJob', 'aitrainer_backoffice.controlling.cron.cron.MyCronJob',
# ... # ...
] ]

View File

@ -10,8 +10,5 @@ https://docs.djangoproject.com/en/3.0/howto/deployment/wsgi/
import os import os
from django.core.wsgi import get_wsgi_application from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'aitrainer_backoffice.settings')
application = get_wsgi_application() application = get_wsgi_application()

View File

@ -12,7 +12,8 @@ class MyCronJob(CronJobBase):
print(datetime.datetime.now(), " *** END sync customers ") print(datetime.datetime.now(), " *** END sync customers ")
def do(self): def do(self):
helper = MauticHelper() pass
helper.syncTrial() #helper = MauticHelper()
#helper.syncTrial()

View File

@ -12,7 +12,7 @@ services:
- mysql-server - mysql-server
ports: ports:
- "8002:8000" - "8002:8000"
command: gunicorn aitrainer_backoffice.aitrainer_backoffice.wsgi --bind 0.0.0.0:8000 --workers 3 command: gunicorn aitrainer_backoffice.aitrainer_backoffice.wsgi --env DJANGO_SETTINGS_MODULE=aitrainer_backoffice.aitrainer_backoffice.settings --bind 0.0.0.0:8000 --workers 3
mysql-server: mysql-server:
image: mysql:8.0.21 image: mysql:8.0.21