BO1.28+6
This commit is contained in:
parent
02e39f1811
commit
b8072b6459
@ -160,6 +160,6 @@ LOGGING = {
|
||||
|
||||
|
||||
CRON_CLASSES = [
|
||||
'controlling.cron.cron.MyCronJob',
|
||||
'aitrainer_backoffice.controlling.cron.cron.MyCronJob',
|
||||
# ...
|
||||
]
|
||||
|
@ -10,8 +10,5 @@ https://docs.djangoproject.com/en/3.0/howto/deployment/wsgi/
|
||||
import os
|
||||
|
||||
from django.core.wsgi import get_wsgi_application
|
||||
|
||||
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'aitrainer_backoffice.settings')
|
||||
|
||||
application = get_wsgi_application()
|
||||
|
||||
|
@ -12,7 +12,8 @@ class MyCronJob(CronJobBase):
|
||||
print(datetime.datetime.now(), " *** END sync customers ")
|
||||
|
||||
def do(self):
|
||||
helper = MauticHelper()
|
||||
helper.syncTrial()
|
||||
pass
|
||||
#helper = MauticHelper()
|
||||
#helper.syncTrial()
|
||||
|
||||
|
||||
|
@ -12,7 +12,7 @@ services:
|
||||
- mysql-server
|
||||
ports:
|
||||
- "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:
|
||||
image: mysql:8.0.21
|
||||
|
Loading…
Reference in New Issue
Block a user