Spaces:
Paused
Paused
BPEL Bot commited on
Commit ·
fac8dfc
1
Parent(s): 44962ca
Log DB env vars at startup
Browse files- docker-entrypoint.sh +3 -0
docker-entrypoint.sh
CHANGED
|
@@ -7,6 +7,9 @@ log() {
|
|
| 7 |
|
| 8 |
RAW_DB_URL="${OTREE_DATABASE_URL:-${DATABASE_URL:-sqlite:////tmp/otree.sqlite3}}"
|
| 9 |
|
|
|
|
|
|
|
|
|
|
| 10 |
# Accept accidental "psql 'url'" copy-pastes by extracting the quoted URL.
|
| 11 |
if [[ "$RAW_DB_URL" == psql* ]]; then
|
| 12 |
CLEANED=$(printf '%s' "$RAW_DB_URL" | sed -n "s/.*'\(postgres[^']*\)'.*/\1/p")
|
|
|
|
| 7 |
|
| 8 |
RAW_DB_URL="${OTREE_DATABASE_URL:-${DATABASE_URL:-sqlite:////tmp/otree.sqlite3}}"
|
| 9 |
|
| 10 |
+
echo "[DEBUG] OTREE_DATABASE_URL='${OTREE_DATABASE_URL-}'"
|
| 11 |
+
echo "[DEBUG] DATABASE_URL='${DATABASE_URL-}'"
|
| 12 |
+
|
| 13 |
# Accept accidental "psql 'url'" copy-pastes by extracting the quoted URL.
|
| 14 |
if [[ "$RAW_DB_URL" == psql* ]]; then
|
| 15 |
CLEANED=$(printf '%s' "$RAW_DB_URL" | sed -n "s/.*'\(postgres[^']*\)'.*/\1/p")
|