dokku shit

This commit is contained in:
Trey t
2023-06-26 11:00:11 -05:00
parent 8c049324a3
commit 554c37765a
9 changed files with 6 additions and 22 deletions

View File

@@ -1,8 +1,8 @@
import os
from celery import Celery
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'werkout.settings')
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'werkout_api.settings')
app = Celery('werkout')
app = Celery('werkout_api')
app.config_from_object('django.conf:settings', namespace='CELERY')
app.autodiscover_tasks()

View File

@@ -158,15 +158,6 @@ if os.environ.get("DATABASE_URL"):
CELERY_BROKER_URL = os.environ.get("REDIS_URL", "") + "/1"
CELERY_RESULT_BACKEND = os.environ.get("REDIS_URL", "") + "/1"
CHANNEL_LAYERS = {
'default': {
'BACKEND': 'channels_redis.core.RedisChannelLayer',
"CONFIG": {
"hosts": [os.environ.get('REDIS_URL', 'redis://localhost:6379')],
}
}
}
INTERNAL_IPS = [
"127.0.0.1",
]
@@ -185,15 +176,6 @@ else:
CELERY_BROKER_URL = "redis://redis:6379"
CELERY_RESULT_BACKEND = "redis://redis:6379"
CHANNEL_LAYERS = {
'default': {
'BACKEND': 'channels_redis.core.RedisChannelLayer',
'CONFIG': {
'hosts': [('redis', 6379)],
}
}
}
INTERNAL_IPS = [
"127.0.0.1",
]