Browse Source

Fix config; Add redis to drone

pull/1/head
Dashie der otter 1 year ago
parent
commit
5344453b04
3 changed files with 7 additions and 3 deletions
  1. 2
    0
      .drone.yml
  2. 2
    3
      config.py.sample
  3. 3
    0
      tests/config_test.py

+ 2
- 0
.drone.yml View File

@@ -85,3 +85,5 @@ services:
environment:
- POSTGRES_USER=postgres
- POSTGRES_DB=reel2bits_test
redis:
image: redis

+ 2
- 3
config.py.sample View File

@@ -14,9 +14,8 @@ SENTRY_USER_ATTRS = ['name', 'email']
SENTRY_DSN = ""

# Redis configuration for broker, used for async background tasks
BROKER_REDIS_HOST = "127.0.0.1"
BROKER_REDIS_PORT = 6379
BROKER_REDIS_DB = 0
CELERY_BROKER_URL = "redis://127.0.0.1:6379/0"
CELERY_RESULT_BACKEND = "redis://127.0.0.1:6379/0"

# They needs to be identical
# You can't change them after setup !

+ 3
- 0
tests/config_test.py View File

@@ -34,6 +34,9 @@ DEBUG_TB_PROFILER_ENABLED = False
DEBUG_TB_INTERCEPT_REDIRECTS = False
DEBUG_TB_ENABLED = False

CELERY_BROKER_URL = "redis://redis:6379/0"
CELERY_RESULT_BACKEND = "redis://redis:6379/0"

BABEL_DEFAULT_LOCALE = "en"
BABEL_DEFAULT_TIMEZONE = "UTC"


Loading…
Cancel
Save