We are using ANZ v10.1 Angular dotNet 5 Combined version.
When we deploy to an Azure AppService Deployment Slot using Visual Studio, the backend API is published to ourdomain\wwwroot. The Angular frontend app is published to wwwroot\wwwroot\dist. Overall, it's about 7000 files being pushed to the cloud. Since the dist folder is not where the files need to be, I then have to use Filezilla to re-upload local wwwroot\wwwroot\dist to Azure wwwroot\wwwroot, or delete the files in Azure wwwroot\wwwroot so that I can move/rename the files from wwwroot\wwwroot\dist up one folder. This is a very time consuming process because the files aren't copied to where they need to be in the first place. On a slow internet day, it has taken a full hour to deploy our application, with much of that time just shuffling the Angular app files to where they belong.
So, is there a more efficient process?
Thanks
1 Answer(s)
-
0
Hi @henryand
Are you doing this on Windows ? If so, your *.Host.csporj file must have a prepublish step for copying files under wwwroot/dist folder to wwwroot folder. If you are not doing this on Windows, you can write a script on your publish pipeline to do this operation before the publish.
When you publish your app, the files will be in the correct directory.