问题标签 [kudu]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
0 回答
87 浏览

git - 本地 Kudu 后接收拉不工作

我在服务器上本地托管了一个 Kudu 项目。我正在尝试修改 post-receive 挂钩以 cd 进入另一个目录,然后执行 git pull。在我切换到的目录中,我使用正确的遥控器设置了存储库,但我收到了

有什么我需要更改的或者我可以通过最新推送到我的存储库中来更新这个其他站点的其他方式吗?

0 投票
0 回答
565 浏览

node.js - EPERM 在 Azure 上安装 KuduSync

我在尝试从 Kudu 调试控制台或从 deploy.cmd 文件自动安装 KuduSync 时遇到“EPERM”错误。

这是我尝试npm install -g kudusync从调试控制台运行时的错误日志:

有人已经经历并解决了这个问题吗?谢谢!

编辑

经过进一步搜索,我发现系统尝试删除的文件夹不存在,其父文件夹也不存在,路径以D:\Program Files (x86)\nodejs\0.10.5\. 有什么线索吗?

0 投票
1 回答
1196 浏览

asp.net-mvc - 从 GIT 部署 Azure 网站时出错

我正在尝试在 Windows Azure 网站上部署 ASP.NET MVC5 应用程序,但在我的 git push 上不断收到此错误:

我已启用 nuget 还原,并且我有另一个部署良好的 MVC4 应用程序。

0 投票
4 回答
4328 浏览

c# - 如何以编程方式将静态 HTML 站点上传到 Windows Azure 网站?

我目前正在用 C# 构建一个本地静态站点生成器。它将一堆模板一起编译成普通的旧 HTML 文件的层次结构。我想将生成的文件上传到我的 Windows Azure 网站并实时反映更改,并且我希望能够通过我的脚本以编程方式执行此操作。

就目前而言,我不得不使用 WebMatrix 手动上传生成的文件,因为我无法找到让我直接将 HTML 上传到 Windows Azure 网站的 API 或 SDK。

当然,必须有一种方法可以从代码中执行此操作,而不仅仅是使用 sFTP 库(因为它不使用 WebMatrix/IIS 协议,我认为它发送压缩差异,会很慢并且意味着超出-在上传过程中同步数据,而某些文件已更新而其他文件尚未更新。)如果可以避免的话,我也宁愿不必将生成的站点提交给源代码管理。在我看来,将某些东西仅仅作为部署的实现细节放入源代码控制中似乎在概念上是错误的。

更新:WebMatrix 内部使用 Web Deploy (MSDeploy)。从理论上讲,您应该能够使用 API 自己构建部署包,但我能找到的 99% 的示例都是使用命令行工具或 Visual Studio 中的 GUI 工具。我需要在 C# 中构建包并以编程方式部署它。关于如何进行此操作的任何想法或指导?MSDN 上的文档并没有真正展示这种场景的任何示例。

0 投票
1 回答
298 浏览

azure - Private Kudu install, how to inject AppSettings like Azure Websites?

When using the Azure Websites with ASP.NET apps, it is possible to configure through the Azure portal a series of AppSettings to be injected at deployment time into the web.config behavior of the app. How can this be reproduced using a private instance of Kudu?

0 投票
2 回答
266 浏览

node.js - 在 Azure 网站上设置节点 v0.11.x 时出错

我们正在尝试将需要节点 v0.11.x 的 node.js 应用程序移动到 Azure 网站。

在尝试使用azure-node-runtime-selector安装 node v0.11.x 时,我们遇到了由 nodist 安装 npm 2.0.0-alpha 引起的错误。

在调用 nodist update 的输出下方:

关于如何解决这个问题或者如何强制 nodist 继续使用 npm v1.4.* 的任何想法?

0 投票
0 回答
151 浏览

iis - 在 IIS 上快速设置 Kudu 以实现水平缩放

我一直在 IIS 开发服务器上使用 Kudu,并成功地使其部署了一个 hello world 站点等。

但我想知道是否有一些关于如何在更大的环境中部署 Kudu 的资源。这样您就可以快速添加新的服务器节点(虚拟)来平衡负载。

是否有某种方法可以从集中位置管理多个 Kudu 部署?我知道它有一个 REST API,显然我们可以使用它,但是这需要一些开发,所以只是想看看是否有现有的解决方案。

但到目前为止,我要么在谷歌上搜索了错误的东西,要么没有太多我需要的东西。

有没有人有在具有许多服务器的大型环境中运行它的经验?

0 投票
2 回答
210 浏览

git - git push from [remote1] [name1] to [remote2] [name2]?

I just set up an Azure website and am trying to push with git from an existing repository. So I ran

and things sort of worked. A lot of files got pushed, but I think they came from origin master, whereas I would like to push changes from the branch I'm working on origin web-zach. Since I'm not sure how Azure works, I would like to push to the azure master branch and not the azure web-zach branch.

I'm wondering if there's a simple command I'm missing here? Something maybe like (this is certainly wrong)

I'm also not sure if I'm experiencing expected behavior here or if Azure (and Node/Kudu) are messing something up. git push azure master also seems to run some deployment scripts, so it does seem a little weird.

0 投票
2 回答
978 浏览

node.js - 如何在 IISNode(Azure 网站)上初始化 koa node.js 应用程序

我们目前正在将一个自托管的 koa 应用程序移动到 Azure 网站上的 IISNode。

在自托管中,我们通过调用 node --harmony ./bin/application 请求来初始化应用程序,然后转到 ./index.js。

但是我们找不到如何设置 IISNode 在初始化时调用“bin/application”。

有任何想法吗?谢谢

0 投票
1 回答
123 浏览

azure - 在 Azure 盒子 (kudu) 上安装 Azure SDK

我正在使用 kudu 从 Windows Azure 上的源代码设置部署。

该项目无法构建,并显示以下消息:

使用目标框上的诊断控制台,我可以看到“D:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\”存在,但不存在 Windows Azure Tools 子目录。

在我的目标机器上安装 Azure 2.4 SDK 是正确的解决方案吗?如果是这样,那么正确的方法是什么?我看不到任何方法可以将该特定安装添加到我的部署脚本中。