Deployed Angular dist/ on Azure Web App showing me default screen

别来无恙 提交于 2020-12-07 07:12:59

问题


I have setup CI-CD on Azure DevOps using classical editor .I did managed to Build angular by Build Pipeline and Using Release pipelines I have pushed the Angular /dist folder to the web app.

The contents are in the following :

/home/site/wwwroot/my-angular-app/

But whenever I open url for the web-app I only could see default web-page of azure web app. I have deployed on Web App (Linux) and I have choose Node as runtime task.

As I'm new to Azure Is there anything else needs to done ?

Thanks in advance.


回答1:


Deployed Angular dist/ on Azure Web App showing me default screen

There are two things you need to do to make the Angular Web App page show when access to https://{appservice_name}.azurewebsites.net.

  1. When deploy the Angular /dist folder to azure web app, please don’t include the my-angular-app folder. Just let the content of dist folder under the path /home/site/wwwroot
  2. Add npx serve -s as Startup Command for your App Service > General settings:

Hope this helps.



来源:https://stackoverflow.com/questions/61122562/deployed-angular-dist-on-azure-web-app-showing-me-default-screen

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!