简体   繁体   English

使用Azure资源管理器部署Node.js网站

[英]Deploy a node.js site using Azure Resource Manager

I'm struggling with a ARM deployment script for my node.js application. 我正在为我的node.js应用程序使用ARM部署脚本。 If I point to a repo with an MVC application it all works fine, but not using an node.js app. 如果我指向带有MVC应用程序的存储库,则一切正常,但不使用node.js应用程序。

Are there any specific settings for node.js sites? node.js网站是否有任何特定设置? Here is the resource part of my script: 这是我脚本的资源部分:

{
  "apiVersion": "2015-08-01",
  "name": "[parameters('nodeName')]",
  "type": "Microsoft.Web/sites",
  "location": "[resourceGroup().location]",
  "tags": {
    "[concat('hidden-related:', resourceGroup().id, '/providers/Microsoft.Web/serverfarms/', parameters('nodeName'))]": "Resource",
    "displayName": "Website"
  },
  "dependsOn": [
    "[concat('Microsoft.Web/serverfarms/', parameters('nodeName'))]"
  ],
  "resources": [
    {
      "apiVersion": "2015-08-01",
      "name": "web",
      "type": "sourcecontrols",
      "dependsOn": [
        "[resourceId('Microsoft.Web/Sites', concat(parameters('nodeName')))]"
      ],
      "properties": {
        "repoUrl": "https://github.com/microServiceBus/microservicebus.node.git",
        "branch": "master",
        "IsManualIntegration": true
      }
    }
  ],
  "properties": {
    "name": "[parameters('nodeName')]",
    "serverFarmId": "[resourceId('Microsoft.Web/serverfarms', parameters('nodeName'))]",
    "siteConfig": {
      "appSettings": [
        {
          "Name": "hubUri",
          "Value": "[parameters('hubUri')]"
        },
        {
          "Name": "nodeName",
          "Value": "[parameters('nodeName')]"
        },
        {
          "Name": "organizationaId",
          "Value": "[parameters('organizationaId')]"
        }
      ]
    }
  }
}

The issue was that the name of the repo had a dot in it (microservicebus.node.git). 问题是存储库的名称中有一个点(microservicebus.node.git)。 I believe the bug is fixed or is going to be fixed soon. 我相信该错误已修复或即将修复。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM