From 37789a1f1865486302de5f203f55efee5afd1206 Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Thu, 12 Jan 2023 07:20:48 +0000 Subject: [PATCH] Add local settings to processing --- core/management/commands/processing.py | 6 ++++-- docker-compose.yml | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/core/management/commands/processing.py b/core/management/commands/processing.py index ae019df..ce3eef6 100644 --- a/core/management/commands/processing.py +++ b/core/management/commands/processing.py @@ -1,11 +1,13 @@ +import msgpack from django.core.management.base import BaseCommand, CommandError from redis import StrictRedis -from core.util import logs + from core.lib.rules import process_rules -import msgpack +from core.util import logs log = logs.get_logger("processing") + class Command(BaseCommand): def handle(self, *args, **options): r = StrictRedis(unix_socket_path="/var/run/socks/redis.sock", db=0) diff --git a/docker-compose.yml b/docker-compose.yml index b222c71..33464cb 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -41,7 +41,7 @@ services: volumes: - ${PORTAINER_GIT_DIR}:/code - ${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 - neptune_static:${STATIC_ROOT} env_file: