Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Offical apps | Community apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Twenty
  3. Set APP_VERSION so the instance knows its own version

Set APP_VERSION so the instance knows its own version

Scheduled Pinned Locked Moved Twenty
3 Posts 2 Posters 155 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D
    D
    david.opalia
    wrote on last edited by
    #1

    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 <<EOT
    
    FRONTEND_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!

    1 Reply Last reply
    2
    • jamesJ
      jamesJ
      james
      Staff
      wrote last edited by
      #2

      Hello @david.opalia
      Thanks for reporting.
      Please update your @twenty app. The latest update should fix your reported issue.

      1 Reply Last reply
      2
      • D
        D
        david.opalia
        wrote last edited by
        #3

        Thank you

        1 Reply Last reply
        2

        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
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Bookmarks
        • Search