Twenty: IS_CONFIG_VARIABLES_IN_DB_ENABLED is hardcoded and overrides /app/data/env
-
App: Twenty
Version: instance reports 2.37.0Summary
start.shappends a hardcodedIS_CONFIG_VARIABLES_IN_DB_ENABLED=falseafter copying/app/data/env, so any value a user sets for that variable in/app/data/envis silently overridden on every start.Details
In
/app/pkg/start.sh:cat /app/data/env > /run/twenty-server/.env cat >> /run/twenty-server/.env <<EOT IS_CONFIG_VARIABLES_IN_DB_ENABLED=false ... EOTSince the generated
.envis read top to bottom, the appended line wins. I hadIS_CONFIG_VARIABLES_IN_DB_ENABLED=truein/app/data/env; the resulting/run/twenty-server/.envcontainsfalse.Impact
With database configuration disabled, Twenty's Admin Panel still renders the Configuration Variables and AI model settings, but no write succeeds. From the UI this looks like a broken feature rather than a deliberate deployment mode — in my case a generic "failed to update model recommendations" toast with no indication that the panel is read-only by design.
It also means the only way to configure the instance is to edit
/app/data/envand restart, which is not discoverable from the app itself.Suggested fix
Only append the default when the user has not set it:
grep -q '^IS_CONFIG_VARIABLES_IN_DB_ENABLED=' /app/data/env \ || echo 'IS_CONFIG_VARIABLES_IN_DB_ENABLED=false' >> /run/twenty-server/.envSame pattern would apply to any other variable in that heredoc that isn't strictly infrastructure-bound (the Postgres/Redis/APP_SECRET lines obviously need to stay authoritative).
Happy to test a build if that helps.
-
Thank you
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login