Skip to content

Commit 2317616

Browse files
committed
fix deployment logjam - postgres limits on railway
1 parent 190e5d4 commit 2317616

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

docker/entrypoint.sh

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,15 @@
11
#!/bin/sh
22
set -e
33

4-
echo "Running bootstrap (migrations, seeding, definitions)..."
5-
python scripts/bootstrap.py
4+
if [ "${SKIP_BOOTSTRAP:-false}" = "true" ]; then
5+
echo "SKIP_BOOTSTRAP=true — skipping bootstrap (scale-down / connection-exhausted deploy)"
6+
else
7+
echo "Running bootstrap (migrations, seeding, definitions)..."
8+
python scripts/bootstrap.py || {
9+
echo "⚠️ Bootstrap failed — likely PG connection exhaustion during rolling deploy."
10+
echo " Schema should already be at head; continuing startup."
11+
echo " Set SKIP_BOOTSTRAP=true in Railway env to suppress this on next deploy."
12+
}
13+
fi
614

715
exec "$@"

0 commit comments

Comments
 (0)