Project environment upgrade
Level: Intermediate
Keywords: upgrade versions, project, local environment
The result: overview of the upgrading process for your project and local environment
This chapter describes all the steps needed for upgrading all software components of your project environment. For how to check your current software components version, see Debugging - Software components versions. The overview of SAMO Platform versions can be found in Lighthouse.
First of all, it is always better to try the upgrade at first on your local environment. Just after you are sure it is OK, apply this upgrade also on your server running project.
Try local environment upgrade​
-
Update software components versions in localtron file
-
Change the version of Dynamic-App components in
package.json. You will find it directly under thegateway\clientsfolder (e.g....\samo-demo\gateway\clients\demo-dynamic-client.json) or in theenvironment.propertiesfile in your project Gitlab repository. You can use semantic versioning to ensure automatic update (e.g. for bug fixes). Update the components in Gateway console. See step 8. in the Setting up local environment manual. -
In the Release notes, check what has changed in the new version since your previous version and update required parts (LIDS metadata, DB, GTW metadata, Dynamic-App metadata...).
Server environment upgrade​
-
Commitandpushupdates in metadata (made based on the Release notes), including the change of required version of Dynamic-App components. -
(Only for packaged projects) Release new versions of packages and update
package-lock.json. For more info see Using packages in project. -
Update the localtron file
-
Update components versions in the
.envfile of corresponding environment in your Gitlab project repository.
Local environment upgrade after the server upgrade​
-
Update your local clone of the project repository. Use
Git pull, see: GIT commands. -
(Only for packaged projects) Update your local clone of the package repositories. Use
Git pull, see: GIT commands. -
(Optional - required only in case that some of the packages, which you do not have referenced using pkg project link in your project environment configuration folder (e.g. samo-base), were updated) Reinstall your local project copy. Run
pkg project-clearandpkg project-install -nlfrom your project environment folder. -
Run
localtron run -ucommand from your project environment folder. -
Update your Dynamic-App components in the Gateway console. See step 8. in the Setting up local environment maual.