mirror of
https://github.com/fergalmoran/dss.api.git
synced 2025-12-22 09:18:13 +00:00
Added untracked
This commit is contained in:
13
dss/celeryconf.py
Normal file
13
dss/celeryconf.py
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
import os
|
||||||
|
|
||||||
|
from celery import Celery
|
||||||
|
from django.conf import settings
|
||||||
|
|
||||||
|
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "dss.settings")
|
||||||
|
|
||||||
|
app = Celery('dss')
|
||||||
|
|
||||||
|
CELERY_TIMEZONE = 'UTC'
|
||||||
|
|
||||||
|
app.config_from_object('django.conf:settings')
|
||||||
|
app.autodiscover_tasks(lambda: settings.INSTALLED_APPS)
|
||||||
4
run_celery.sh
Executable file
4
run_celery.sh
Executable file
@@ -0,0 +1,4 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
su -m djworker -c "celery worker -A dss.celeryconf -Q default"
|
||||||
|
chown djworker /files -R
|
||||||
|
chown djworker /tmp/dss.log
|
||||||
2
run_web.sh
Executable file
2
run_web.sh
Executable file
@@ -0,0 +1,2 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
su -m djworker -c "python manage.py runserver_plus 0.0.0.0:8000"
|
||||||
Reference in New Issue
Block a user