File tree Expand file tree Collapse file tree 5 files changed +5
-6
lines changed
deploy/manifests/balancer/base Expand file tree Collapse file tree 5 files changed +5
-6
lines changed Original file line number Diff line number Diff line change 11DEBUG=True
22SECRET_KEY=foo
3- DJANGO_ALLOWED_HOSTS=localhost 127.0.0.1 [::1]
3+
44SQL_ENGINE=django.db.backends.postgresql
55SQL_DATABASE=balancer_dev
66SQL_USER=balancer
77SQL_PASSWORD=balancer
88SQL_HOST=db
99SQL_PORT=5432
10- DATABASE=postgres
10+
1111LOGIN_REDIRECT_URL=
1212OPENAI_API_KEY=
1313ANTHROPIC_API_KEY=
Original file line number Diff line number Diff line change @@ -13,7 +13,6 @@ metadata:
1313 namespace : balancer
1414type : Opaque
1515stringData :
16- DATABASE : postgres
1716 DEBUG : ' 1'
1817 LOGIN_REDIRECT_URL : ' '
1918 OPENAI_API_KEY : openapi_key_here
Original file line number Diff line number Diff line change 2929
3030# Fetching the value from the environment and splitting to list if necessary.
3131# Fallback to '*' if the environment variable is not set.
32- ALLOWED_HOSTS = os .environ .get ("DJANGO_ALLOWED_HOSTS " , "*" ).split ()
32+ ALLOWED_HOSTS = os .environ .get ("ALLOWED_HOSTS " , "*" ).split ()
3333
3434# If the environment variable contains '*', the split method would create a list with an empty string.
3535# So you need to check for this case and adjust accordingly.
Original file line number Diff line number Diff line change 11#! /bin/sh
22
3- if [ " $DATABASE " = " postgres " ]
3+ if [ " $SQL_ENGINE " = " django.db.backends.postgresql " ]
44then
55 echo " Waiting for postgres..."
66
Original file line number Diff line number Diff line change 11#! /bin/sh
22
3- if [ " $DATABASE " = " postgres " ]
3+ if [ " $SQL_ENGINE " = " django.db.backends.postgresql " ]
44then
55 echo " Waiting for postgres..."
66
You can’t perform that action at this time.
0 commit comments