Add local settings to processing
This commit is contained in:
parent
4dd8224a77
commit
37789a1f18
|
@ -1,11 +1,13 @@
|
||||||
|
import msgpack
|
||||||
from django.core.management.base import BaseCommand, CommandError
|
from django.core.management.base import BaseCommand, CommandError
|
||||||
from redis import StrictRedis
|
from redis import StrictRedis
|
||||||
from core.util import logs
|
|
||||||
from core.lib.rules import process_rules
|
from core.lib.rules import process_rules
|
||||||
import msgpack
|
from core.util import logs
|
||||||
|
|
||||||
log = logs.get_logger("processing")
|
log = logs.get_logger("processing")
|
||||||
|
|
||||||
|
|
||||||
class Command(BaseCommand):
|
class Command(BaseCommand):
|
||||||
def handle(self, *args, **options):
|
def handle(self, *args, **options):
|
||||||
r = StrictRedis(unix_socket_path="/var/run/socks/redis.sock", db=0)
|
r = StrictRedis(unix_socket_path="/var/run/socks/redis.sock", db=0)
|
||||||
|
|
|
@ -41,7 +41,7 @@ services:
|
||||||
volumes:
|
volumes:
|
||||||
- ${PORTAINER_GIT_DIR}:/code
|
- ${PORTAINER_GIT_DIR}:/code
|
||||||
- ${PORTAINER_GIT_DIR}/docker/uwsgi.ini:/conf/uwsgi.ini
|
- ${PORTAINER_GIT_DIR}/docker/uwsgi.ini:/conf/uwsgi.ini
|
||||||
#- ${APP_LOCAL_SETTINGS}:/code/app/local_settings.py
|
- ${APP_LOCAL_SETTINGS}:/code/app/local_settings.py
|
||||||
- ${APP_DATABASE_FILE}:/code/db.sqlite3
|
- ${APP_DATABASE_FILE}:/code/db.sqlite3
|
||||||
- neptune_static:${STATIC_ROOT}
|
- neptune_static:${STATIC_ROOT}
|
||||||
env_file:
|
env_file:
|
||||||
|
|
Loading…
Reference in New Issue