我想使用gitlab ci/cd pipeline将angular应用程序部署到azure,我创建了gitlab管道,参考如下:-
gitlab ci/cd pipeline
部署后,问题出现在日志中,显示以下错误:
请帮助我修复此错误
az31mfrm1#
ng new my-app
ng build
dist folder
Advanced Tools in App Service=>Go=>Opens KUDU site=>Debug Console=>cmd=>open site/wwwroot folder
my_angularapp
App Service=>Configuration=>PathMappings=> Virtual applications and directories
site\wwwroot
project_name
https://<your_AppService_name>.azurewebsites.net
1条答案
按热度按时间az31mfrm1#
执行步骤:
ng new my-app
命令创建Angular应用程序。ng build
构建项目,它将生成dist folder
,其中包含部署所需的文件。Advanced Tools in App Service=>Go=>Opens KUDU site=>Debug Console=>cmd=>open site/wwwroot folder
,确保项目文件可用,如下所示:my_angularapp
),导航到App Service=>Configuration=>PathMappings=> Virtual applications and directories
,编辑 * 物理路径 *site\wwwroot
,在路径中添加project_name
**:https://<your_AppService_name>.azurewebsites.net
测试应用:**