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 b3c273a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 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
7 changes: 6 additions & 1 deletion 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 @@ -241,6 +245,7 @@
else:
CELERY_BROKER_URL = "redis://localhost:6379/1"


CELERY_BROKER_CONNECTION_RETRY_ON_STARTUP = True


Expand Down

0 comments on commit b3c273a

Please sign in to comment.