Try to update .43 to .44 with yarn command:prod upgrade error APP_VERSION is not defined
I did these two command on local setup
yarn database:migrate:prod
yarn command:prod upgrade
But got error on second command:
Error in workspace xxxx: cannot run upgrade command when APP_VERSION isn not defined, please double check your env variables.
Am I missing something in the env?
5 Replies
On what twenty's version
Are you pulling from dockerhub or building from scratch?
building from scratch. v.43
Ok ! You now need to define an APP_VERSION env var starting from 0.43
As now workspace are getting versionned in db to avoid invalid upgrade ( also to ease upcoming auto migrate tool )
0.43 upgrade won't validate workspace version only populate their cols in base
You can use your own semver
On our side we infer and define APP_VERSION in dockerfiles during cd from related git tag name
Thank!
Adding APP_VERSION to env works.
Please keep in mind that you will to update each time you upgrade twenty in order to workspace de get migrated
Also I was wrong it should follow twenty's version you're building from in order for the upgrade to run successfully