Browse Source

fix serverfarms id for azure deployment

Signed-off-by: Outsider <outsideris@gmail.com>
Outsider 6 years ago
parent
commit
c030b11b3c
2 changed files with 6 additions and 6 deletions
  1. 3 3
      README.md
  2. 3 3
      azuredeploy.json

+ 3 - 3
README.md

@@ -41,7 +41,7 @@ If you want to use a `.env` file, create a file in the root called `.env` with t
 - `RECAPTCHA_SITE`: An optional security measure - used to enable reCAPTCHA.
 - `RECAPTCHA_SECRET`: An optional security measure - used to enable reCAPTCHA.
 - `LOCALE`: Application language (currently `cs`, `de`, `en`, `es`, `fr`, `it`, `ja`, `ko`, `nl`, `pl`, `pt`, `pt-BR`, `tr`, `zh-CN` and `zh-TW` available).
-* `SUBPATH`: Sub-path in URL. For example, if `/example` is set, it's served in `/example`, not `/`. Default is `/`.
+- `SUBPATH`: Sub-path in URL. For example, if `/example` is set, it's served in `/example`, not `/`. Default is `/`.
 
 **Sample**
 
@@ -143,10 +143,10 @@ You can use the badge to show status of user in your slack.
     ```
 
 * With custom colors:
-    
+
     * `?colorA=abcdef` Set background of the left part (hex color only)
     * `?colorB=fedcba` Set background of the right part (hex color only)
-    
+
     ```
     <img src="https://your.domain/badge.svg?colorA=155799&colorB=159957">
     ```

+ 3 - 3
azuredeploy.json

@@ -52,7 +52,7 @@
         "type": "Microsoft.Web/serverfarms",
         "location": "[parameters('siteLocation')]",
         "properties": {
-            "name": "[parameters('hostingPlanName')]"
+          "name": "[parameters('hostingPlanName')]"
         },
         "sku": {
           "name": "[parameters('sku')]"
@@ -67,11 +67,11 @@
             "[concat('hidden-related:', resourceGroup().id, '/providers/Microsoft.Web/serverfarms/', parameters('hostingPlanName'))]": "empty"
         },
         "dependsOn": [
-            "[concat('Microsoft.Web/serverfarms/', parameters('hostingPlanName'))]"
+          "[resourceId('Microsoft.Web/serverfarms', parameters('hostingPlanName'))]"
         ],
         "properties": {
           "name": "[parameters('siteName')]",
-          "serverFarm": "[parameters('hostingPlanName')]"
+          "serverFarmId": "[parameters('hostingPlanName')]"
         },
         "resources": [{
           "apiVersion": "2015-08-01",