Azure 功能 - 门户代码部署功能正在跳过构建 [英] Azure Function - Portal Code Deployment feature is skipping build

查看:17
本文介绍了Azure 功能 - 门户代码部署功能正在跳过构建的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 Visual Studio 代码创建了一个函数应用程序,然后将其发布.功能应用程序工作正常.我现在在功能门户中使用代码部署功能(KUDU)并跳过构建.以下是日志

I have create a function app using visual studio code and then published it. Function app works fine. I am now using code deployment feature(KUDU) in the function portal and its skipping the build. Below is the log

9:55:46 AM       Updating submodules.   
9:55:47 AM       Preparing deployment for commit id '5642d3aeec'.   
9:55:48 AM       Skipping build. Project type: Run-From-Zip 
9:55:48 AM       Skipping post build. Project type: Run-From-Zip    
9:55:48 AM      Triggering recycle (preview mode disabled). 
9:55:49 AM      Syncing 4 function triggers with payload size 452 bytes successful. 
9:55:50 AM      Deployment successful.

每当代码签入到 Github 时,就会发生部署.但它没有选择最新的代码.我确实将应用设置 WEBSITE_RUN_FROM_PACKAGE 设置为1".

Deployment is happening when ever the code is checked in to Github. But its not picking the latest code. I did set the app setting WEBSITE_RUN_FROM_PACKAGE to "1".

我需要进行哪些更改才能选择最新版本.

What changes do I need to make to pick the latest build.

提前致谢

推荐答案

我有类似的场景和类似的体验,但是我没有手动设置WEBSITE_RUN_FROM_PACKAGE,虽然我发现它设置为1. 我假设它是由首先创建 Azure Functions App 的 VS Code 部署设置的.然后当我切换到使用 Kudu 持续集成时,设置仍然存在.我从 Configuration 中删除了该设置,现在问题已解决.

I have had a similar scenario and a similar experience, but I did not manually set WEBSITE_RUN_FROM_PACKAGE, though I found it set to 1. I assume it was set by the VS Code deployment, which first created the Azure Functions App. Then when I switched to using Kudu Continuous Integration, the setting was still around. I deleted that setting from Configuration, and now the problem is fixed.

这篇关于Azure 功能 - 门户代码部署功能正在跳过构建的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆