We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 190e5d4 commit 2317616Copy full SHA for 2317616
1 file changed
docker/entrypoint.sh
@@ -1,7 +1,15 @@
1
#!/bin/sh
2
set -e
3
4
-echo "Running bootstrap (migrations, seeding, definitions)..."
5
-python scripts/bootstrap.py
+if [ "${SKIP_BOOTSTRAP:-false}" = "true" ]; then
+ 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
14
15
exec "$@"
0 commit comments