Azure功能-门户代码部署功能正在跳过构建 [英] Azure Function - Portal Code Deployment feature is skipping build
问题描述
我已经使用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我假设它是由VS Code部署设置的,该代码首先创建了Azure Functions应用程序.然后,当我切换到使用Kudu Continuous Integration时,设置仍然存在.我从配置中删除了该设置,现在问题已解决.
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屋!