Skip to content

The open alternative to Salesforce, designed for AI.

Fail entrypoint if migration fails (#8590)

Sasank Chilamkurthyd90c3110cff1
diff --git a/packages/twenty-docker/twenty/entrypoint.sh b/packages/twenty-docker/twenty/entrypoint.sh
index c6844ec7396..331a4636022 100755
--- a/packages/twenty-docker/twenty/entrypoint.sh
+++ b/packages/twenty-docker/twenty/entrypoint.sh
@@ -1,4 +1,5 @@
#!/bin/sh
+set -e
# Check if the initialization has already been done and that we enabled automatic migration
if [ "${ENABLE_DB_MIGRATIONS}" = "true" ] && [ ! -f /app/docker-data/db_status ]; then