node.js - 如何在 Visual Studio Online 中将 Node.js 应用程序部署到 Azure?

标签 node.js visual-studio azure tfsbuild azure-devops

我正在尝试将 Node.js Web 应用程序从 Visual Studio Online 部署到 Azure Web 应用程序。 Visual Studi Online 提供了在线构建应用程序然后将其部署到 azure 的可能性。

我添加了构建脚本“Visual Studio Build”,然后添加了“Azure Web App Deployment”:

Visual Studio Online Build Process

“Visual Studio Build”工作正常。在构建过程步骤“Azure Web App 部署”中,我为“Web 部署包”添加了不同的路径。没有任何效果。

Azure Web App Deployment

您知道如何构建 Node.js Web 应用程序并将其部署到 Azure 吗? 或者您知道在“Azure Web App 部署”流程步骤中“Web 部署包”使用哪个路径?

感谢您的帮助!

最佳答案

现在,VSO 允许文件选择器选择 Web 部署包的路径。

我不确定 Visual Studio Build 是否会为 Node.JS 应用程序创建部署包。

您可以尝试以下两种方法之一。

  1. 您可以使用通用 powershell 任务从代码创建您自己的 zip 包,然后将 zip 的完整路径放在代理计算机上的“Web 部署包”字段中。

  2. 您始终可以 checkin 压缩文件,然后可以使用文件选择器选择该文件。

关于node.js - 如何在 Visual Studio Online 中将 Node.js 应用程序部署到 Azure?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31614079/

相关文章:

Azure 发布与打包 - 证书部署

javascript - meteor Node :mysql custom query

javascript - 模拟 Node 获取时出现“已使用的主体”错误?

javascript - Node.js : How to respond with json object after parse from get request with url params

c++ - 如何使用 Visual Studio CppUnitTestFramework 访问我的代码

azure - 组合 Azure 逻辑应用消耗中的数组项

node.js - 如何在odoo和node js中获取当前登录的用户ID

visual-studio - 你将如何在 VIM 中使用它进行剪切和粘贴?

c# - 引用另一个项目?

Azure存储: BlobClient keeps resetting itself while uploading large files