Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonGrace2282 committed Jan 14, 2025
1 parent a39d663 commit cb21389
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ on:
- push
- pull_request

env:
CI: 1

defaults:
run:
shell: bash
Expand All @@ -21,7 +24,6 @@ jobs:
image: redis
ports:
- 6379:6379
options: --entrypoint redis-server

steps:
- name: Set up repo
Expand Down
4 changes: 3 additions & 1 deletion tin/settings/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True

CI = "CI" in os.environ

ALLOWED_HOSTS = [
"127.0.0.1",
"localhost",
Expand Down Expand Up @@ -234,7 +236,7 @@
CELERY_RESULT_BACKEND = "django-db"


if DEBUG:
if not CI and DEBUG:
CELERY_BROKER_URL = "redis://redis:6379/0"
else:
CELERY_BROKER_URL = "redis://localhost:6379/1"
Expand Down

0 comments on commit cb21389

Please sign in to comment.