首页 文章

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

提问于
浏览
7

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

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

Visual Studio Online Build Process

“Visual Studio Build”工作正常 . 在构建过程步骤“Azure Web App部署”中,我为“Web部署包”添加了不同的路径 . 什么都行不通 .

Azure Web App Deployment

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

谢谢您的帮助!

1 回答

  • 1

    现在,VSO允许文件选择器选择Web Deploy包的路径 .

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

    你可以尝试这两件事之一 .

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

    • 您可以随时登记压缩文件,然后可以使用文件选择器进行选择 .

相关问题