Hi,
I have a build server (SERVER A below) that compiles and builds my AL code, though, I would like to further automate this by deploying the created .app file to a separate remote server (SERVER B below).
Can someone point me in the right direction of where to look? So basically (Assume that the below servers can talk to each other).
SERVER A: Code is built. Should be automatically deployed to
SERVER B using a script.
SERVER B: Runs NAV. Standard three tier setup.
I have no issues writing a script that installs / upgrades an AL .app running on
SERVER B, eg the server running nav, though I want to push my code from
SERVER A to
SERVER B (C, D, E, F, G, etc).
Would be great if someone could point me in the right direction.
Similar question:
https://github.com/Microsoft/AL/issues/2734 (Not regarding upgrading an app though)
Answers
https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/devenv-how-publish-and-install-an-extension-v2
And this:
https://docs.microsoft.com/en-us/dynamics-nav/how-to--publish-and-install-an-extension
I hope it can help you.
Arhontis
https://forum.mibuso.com/search
A new version of navcontainerhelper has been released, and it partly covers the issue, https://github.com/microsoft/navcontainerhelper/blob/master/AppHandling/Publish-NavContainerApp.ps1
I've refactored the script to use it for my purpose, (eg have a look at the useDevEndpoint and you'll understand). But that only covers the first installation, upgrading an app and running upgrade codeunits does not seem to work, the only option as I see it is to recreate it completely. Eg not suitable for production environments, making ut "useless" from a CI/CD perspective.