- you have
Dev
andProd
NAV databases - you have Git repository with root branch containing all objects as txt files
- you have developments made in Codeunit 90 (for example) in
Dev
and you want to deploy your changes toProd
- you have Git installed and configured, cloned repo on your local machine, UserSetup table have "Local Repo Path" populated
- Have a new workitem/ticket in tracking system represensing your change ID. For example: Change-01.
- Make a new git branch for your changes created from the master branch. For example: bugfix/Change-01-mysuperfix.
- Run
Form 50081 "Project Card"
and create a new Project "Change-01", populate line with Codeunit 90, populate Git branch name. - Checkout to your branch with Git with powershell console or Visual Studio Code.
- Export objects from
Dev
using "Project Card"Export Objects to Local Repo
button. The files should be exported to your reporisory, so you should be able to see COD90.txt changed. - Review, commit and push changes to remote.
You are ready now to create pull request or deploy to
Prod
.
- Make sure your git is switched to project branch.
- Export project data using
Export Project to XML
. This will create XML file at.\Tools\ProjectData
folder. - On
Prod
open "Project Card" and runImport Project from XML
. This will restore the project onProd
, XML is removed. - Import objects to
Prod
usingImport Objects from Local Repo
button on "Project Card". - Compile objects.
- Merge your changes with parent branch using source control system (Azure DevOps/BitBucket etc.) or git command line.
Your project is deployed to
Prod
.