Hello everyone,
According to the Dynatrace Docs(AppEngine | Dynatrace Developer) the preferred way to create an app bundle (zip) that can be uploaded in an environment is to use the dt-app toolkit.
But when I use npx dt-app build it will create a /dist folder with files but not a zip folder.
If I zip the /dist folder it will not allow me to upload the custom app complaining about missing files.
If I use npx dt-app deploy it will deploy to my environment as expected but this also does not create a distributable zip file.
What is the preferred way to create a distributable zip file?
Kind regards,
Erik
Hi MW_ErikPost,
You need to execute npx dt-app deploy --dry-run which will create a folder called out, with the artifact zipped.
The dist folder that comes from the dt-app build command by itself is not enough for deploying the app since you are missing key metadata files like the app.config.json.
The documentation states how the dt-app deploy command works under the hood, which is the one zipping the needed files to be able to upload them through the API. However, as a user you don’t keep that zip file unless you use the --dry-run parameter.
Thanks Dani,
That indeed seems to work. I do not see it stated anywhere in the documentation, might be worth to add this to here: App toolkit | Dynatrace Developer and to the command help as well.