Skip to content

Commit

Permalink
Get stuff working
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonGrace2282 committed Jan 16, 2025
1 parent f96583b commit f7f2d72
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
3 changes: 2 additions & 1 deletion compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,13 @@ services:
networks:
- tin-network
ports:
- 8000:8000
- 8000:8080
volumes:
- .:/app
entrypoint:
- ./manage.py
- runserver
- 0.0.0.0:8080
depends_on:
- redis
healthcheck:
Expand Down
9 changes: 7 additions & 2 deletions tin/settings/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,11 @@
CHANNEL_LAYERS = {
"default": {
"BACKEND": "channels_redis.core.RedisChannelLayer",
"CONFIG": {"hosts": [("localhost", 6379)]},
"CONFIG": {
"hosts": [
("redis" if not CI and DEBUG else "localhost", 6379),
]
},
},
}

Expand Down Expand Up @@ -239,7 +243,8 @@
if not CI and DEBUG:
CELERY_BROKER_URL = "redis://redis:6379/0"
else:
CELERY_BROKER_URL = "redis://localhost:6379/1"
CELERY_BROKER_URL = "redis://localhost:6379/0"


CELERY_BROKER_CONNECTION_RETRY_ON_STARTUP = True

Expand Down

0 comments on commit f7f2d72

Please sign in to comment.