T
Twenty7d ago
baon99

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
Prastoin
Prastoin7d ago
On what twenty's version Are you pulling from dockerhub or building from scratch?
baon99
baon99OP7d ago
building from scratch. v.43
Prastoin
Prastoin7d ago
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
baon99
baon99OP7d ago
Thank! Adding APP_VERSION to env works.
Prastoin
Prastoin6d ago
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

Did you find this page helpful?