简体   繁体   English

在 azure 网站(应用服务)上添加部署后脚本

[英]add post deployment script on azure website(app service)

I am trying to run a post deployment script to delete few files from azure website(app service-kudu).我正在尝试运行部署后脚本以从 azure 网站(app service-kudu)中删除几个文件。 I am using visual studio online 2015 for CI-build definition.我正在使用 Visual Studio Online 2015 进行 CI 构建定义。 I want to add a post deployment script that can delete few files from app service(site\\wwwroot..).我想添加一个部署后脚本,可以从应用程序服务(站点\\wwwroot ..)中删除几个文件。

I looked into [ How to add a custom post deployment script to azure websites?我查看了 [ 如何将自定义部署后脚本添加到 azure 网站?

On this link it is mentioned to add POST_DEPLOYMENT_ACTION in app setting on azure portal.在此链接上,提到在 azure 门户的应用设置中添加 POST_DEPLOYMENT_ACTION。 I am unable to understand what will be the exact path of the script .我无法理解脚本的确切路径是什么。 If I write a cmd script and keep in the folder where solution file is present.如果我编写一个 cmd 脚本并将其保存在存在解决方案文件的文件夹中。 Now what will be the exact path ?现在确切的路径是什么?

If you are using a VSTS build definition, your build is happening in VSTS and is not using Kudu.如果您使用的是 VSTS 构建定义,则您的构建是在 VSTS 中进行的,而不是使用 Kudu。 As such, this post deployment hook feature is not available.因此,此部署后挂钩功能不可用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何解决App Service的Azure部署插槽问题? - How to fix Azure Deployment slots issue for App Service? Web.config 用于 .net 部署到 Azure 应用服务 - Web.config for .net deployment to Azure app service 如何在 Azure App Service Linux 上运行脚本 - How Run script on Azure App Service Linux Azure 带有“WEBSITE_”前缀的应用服务环境变量? - Azure App Service environment variables with “WEBSITE_” prefix? 从应用服务上托管的 static 网站读取 azure blob 存储 - Read azure blob storage from static website hosted on app service 为 Service Fabric 配置 Azure 部署 - Configure Azure deployment for Service Fabric Azure部署.NET应用程序部署脚本 - Azure deployment .NET app deployment scripts 在 IIS 上部署 Azure DevOps 网站时出错 - Error in Azure DevOps website deployment on IIS 如何为 Azure 应用服务 API 添加授权 header? - How can I add the authorization header for Azure App Service API? 网站重定向基于Windows Server IIS和较新的Azure App服务中安装的URL到URL - Website redirect based on URL to App installed in Windows Server IIS and Newer Azure App service
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM