Skip to content

Commit

Permalink
xd
Browse files Browse the repository at this point in the history
  • Loading branch information
realsuayip committed Aug 2, 2023
1 parent 32b146a commit 99a18c9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
4 changes: 0 additions & 4 deletions docker/prod/django/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,4 @@ if [ "${DJANGO_CONTEXT}" = "celery" ]; then
done
fi

if [ "${DJANGO_CONTEXT}" = "web" ]; then
python manage.py migrate --no-input
fi

exec "$@"
9 changes: 5 additions & 4 deletions k8s/celery.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,16 @@ spec:
containers:
- name: asu-celery-worker
image: docker.io/library/asu-python:latest
command: [ "celery" ]
args: [ "-A", "asu", "worker", "-l", "info" ]
args: [ "celery", "-A", "asu", "worker", "-l", "info" ]
imagePullPolicy: Never
envFrom:
- secretRef:
name: asu-secrets
- secretRef:
name: postgres-secrets
env:
- name: DJANGO_CONTEXT
value: celery

---

Expand All @@ -49,8 +51,7 @@ spec:
containers:
- name: asu-celery-beat
image: docker.io/library/asu-python:latest
command: [ "celery" ]
args: [ "-A", "asu", "beat", "-l", "info" ]
args: [ "celery", "-A", "asu", "beat", "-l", "info" ]
imagePullPolicy: Never
envFrom:
- secretRef:
Expand Down
4 changes: 2 additions & 2 deletions k8s/web.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ spec:
containers:
- name: asu-web
image: docker.io/library/asu-python:latest
command: [ "gunicorn" ]
args: [
"gunicorn",
"asu.gateways.asgi",
"--bind", "0.0.0.0:8000",
"--workers", "4",
Expand Down Expand Up @@ -56,8 +56,8 @@ spec:
containers:
- name: asu-websocket
image: docker.io/library/asu-python:latest
command: [ "gunicorn" ]
args: [
"gunicorn",
"asu.gateways.websocket",
"--bind", "0.0.0.0:8000",
"--workers", "4",
Expand Down

0 comments on commit 99a18c9

Please sign in to comment.