BO1.28+6
This commit is contained in:
parent
02e39f1811
commit
b8072b6459
@ -160,6 +160,6 @@ LOGGING = {
|
|||||||
|
|
||||||
|
|
||||||
CRON_CLASSES = [
|
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
|
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()
|
||||||
|
|
||||||
|
@ -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()
|
||||||
|
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user