Set APP_VERSION so the instance knows its own version
-
Hi,
Thanks for maintaining the Twenty package!
Issue: Settings › Releases › Current version always shows “Unknown”, and the upgrade registry (core."upgradeMigration") records every step with executedByVersion = 'unknown'.
Cause: Twenty reads its version from the APP_VERSION env var, which the official Docker images set at build time. The Cloudron package doesn’t set it, and it can’t be derived at runtime: /app/code/package.json reports 0.2.1 (monorepo placeholder) and packages/twenty-server/package.json has no version field.
Users can add APP_VERSION=x.y.z to /app/data/env, but then have to update it by hand after every package update.
Suggestion: expose the upstream version from the Dockerfile (which already knows which release it builds), e.g.
dockerfile
ARG TWENTY_VERSION=2.49.0 ENV TWENTY_VERSION=${TWENTY_VERSION}and add it to the generated config in start.sh, in the block appended to /run/twenty-server/.env:
diff
cat >> /run/twenty-server/.env <<EOTFRONTEND_URL=${CLOUDRON_APP_ORIGIN} SERVER_URL=${CLOUDRON_APP_ORIGIN} NODE_PORT=3000 +APP_VERSION=${TWENTY_VERSION}Since it’s appended after /app/data/env, it would also override any stale manual value users may have set.
Thanks!
-
-
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