问题
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.
- 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
- Add
npx serve -s
as Startup Command for yourApp Service
>General settings
:
Hope this helps.
来源:https://stackoverflow.com/questions/61122562/deployed-angular-dist-on-azure-web-app-showing-me-default-screen