Skip to content

Latest commit

 

History

History
50 lines (37 loc) · 1.44 KB

updating.md

File metadata and controls

50 lines (37 loc) · 1.44 KB

Updating

A key value for utilizing the Nava Platform is not only getting off the ground, but staying up to date with new features and developments that are provided in the upstream templates.

The Platform CLI is designed to try to make that process of keeping up to date easier. You can help yourself further by following the advice in Avoiding Conflicts on Update.

Important

You can not update a project repo that is "dirty" (i.e., has untracked files or pending changes according to Git).

So for template updates, it can be useful to have a dedicated worktree separate from your main development one (or stash changes, maintain an entirely separate local "clean" repo, etc.).

template-infra

nava-platform infra update .

This will attempt to update the "base" template then each "app" instance in sequence. This can often run into merge conflicts that need resolved manually. The tool will provide some guidance if this happens.

But you can also approach the update in the separate pieces yourself, first updating the infrastructure base with:

nava-platform infra update-base .

Then all the infrastructure for each application with:

nava-platform infra update-app --all .

(drop --all if you would rather choose the order to update the applications)

Application templates

nava-platform app update . <APP_NAME>