1

I try to deploy an angular web app to azure and in order to do this I use azure devops, after a lot of Attempts I managed to build ci/cd pipeline that work but the problem is that when I go to the url where the app was supposed to run, nothing is updated and I see the default page. the following is the yml that I used:

yml file in addition this is the stages of the build: The stages of the build

and this is the the stages of the release: release stages

log of deploy to azure

in addintion i uplod the log file to my github account- https://github.com/galoren287199/LogToProject
I'll very appreciate any help here , best regards , gal :)

גל אורן
  • 37
  • 1
  • 6
  • Can you show us log of `Deploy Azure App Service` step from release pipeline? – Krzysztof Madej Oct 23 '20 at 06:55
  • hello @KrzysztofMadej i edit the publish and add a picture of the Deploy Azure App Service step and link to logfile in my github account I'll appreciate if you take a look :) – גל אורן Oct 23 '20 at 10:11
  • Based on log all looks fine. Can you show us what you have in `wwwroot` on Azure using Kudu Console for instance. – Krzysztof Madej Oct 23 '20 at 10:19
  • Am I right that your App Plan is Linux based? If yes, can you check this topic https://stackoverflow.com/questions/56532386/hosting-angular-application-in-azure-linux-app-service – Krzysztof Madej Oct 23 '20 at 10:22
  • hello @Cece Dong - MSFT I get complicated with the inputs for the task ,very appricate if you can help with it ,in addition I append link to my github repositry that consist the logfile in the post , – גל אורן Oct 23 '20 at 10:25
  • @גלאורן How's your issue going? – Cece Dong - MSFT Nov 02 '20 at 09:22
  • hello ,I succeeded to solve my problem ,i recompose the pipe again manually but in addition i found two problems that i had to fix . first i read that because the machine that i run on its linux its not open automatically a web server like iis in windows so i found the following issue useful for it https://stackoverflow.com/questions/59707804/deployed-angular-app-to-azure-web-app-but-showing-the-default-azure-page furthermore the root folder that i reference in the beginning was build.sourcedirectory i change it the place where the build was created it is dist\"the name of my app" :) – גל אורן Nov 03 '20 at 00:42
  • @גלאורן Great to see your issue is solved, please add a reply and [Accept it as an Answer](https://meta.stackexchange.com/questions/5234/how-does-accepting-an-answer-work), this can be beneficial to other community members reading this thread. – Cece Dong - MSFT Nov 03 '20 at 06:03

2 Answers2

0

You may try AzureRMWebAppDeployment@4 task directly after ArchiveFiles task. In this way, you don't need a release stage. If you still can't get it work, share the detailed log.

enter image description here

      - task: AzureRMWebAppDeployment@4
Cece Dong - MSFT
  • 29,631
  • 1
  • 24
  • 39
0

I succeeded to solve my problem ,i recompose the pipe again manually but in addition i found two problems that i had to fix . first i read that because the machine that i run on its linux its not open automatically a web server like iis in windows so i found the following issue useful for it stackoverflow.com/questions/59707804/… furthermore the root folder that i reference in the beginning was build.sourcedirectory i change it the place where the build was created it is dist"the name of my app" :)

גל אורן
  • 37
  • 1
  • 6