T
Twenty2w ago
kBono

APP_VERSION - Dev Mode

A quick question, any way for me to be able to know which APP_VERSION am i running? Is there a tag on the database or something that I can use? I lost my git history due a mistake 😬 .
9 Replies
ɃØĦɆᵾS
ɃØĦɆᵾS2w ago
In local setup, you can check in database which version is currently running with query SELECT version FROM core.workspace; but if you want to check which exactly commit is last in local setup, only git history can show it
kBono
kBonoOP2w ago
Thanks bob, I am doing this in an effort to workout how to upgrade to the latest version step by step. Thanks again!!
kBono
kBonoOP2w ago
Oh well
No description
ɃØĦɆᵾS
ɃØĦɆᵾS2w ago
🤔
kBono
kBonoOP2w ago
I am running twenty fully local with the pg and redis containers and the server/front running via NX.
ɃØĦɆᵾS
ɃØĦɆᵾS2w ago
Sorry about that, this command works with 1-click docker setup only then, thought it works also in local setup but apparently not @prastoin could you help please? 😅
Prastoin
Prastoin2w ago
Hey there In local setup APP_VERSION is not defined you will need to define it manually in your twenty-server .env Please see https://discord.com/channels/1130383047699738754/1372831640920789032/1372833279610196039 As a self host requiring a fork I would highly recommend basing my fork on official self host released version git tags And set the APP_VERSION accordingly
ɃØĦɆᵾS
ɃØĦɆᵾS2w ago
I was thinking if there would be any way to deduce which version is currently running in local setup by checking which columns in SQL tables are available in worst case scenario where git history is lost 🤔 But then, someone would have to know which columns or tables were changed in specific version
Prastoin
Prastoin2w ago
I would rather recommend make based commit hash matching/comparison with repo git history as being the most reliable imo

Did you find this page helpful?