Skip to content

Commit

Permalink
Extract duplicate environment definition
Browse files Browse the repository at this point in the history
  • Loading branch information
c-w committed Jan 25, 2019
1 parent 88853a3 commit 25522d4
Showing 1 changed file with 21 additions and 33 deletions.
54 changes: 21 additions & 33 deletions azuredeploy.json
Expand Up @@ -101,7 +101,25 @@
"databaseVersion": "9.6",
"databaseServerName": "[concat(parameters('appName'),'-state')]",
"setupScriptName": "[concat(parameters('appName'),'-setup')]",
"appServicePlanName": "[concat(parameters('appName'),'-hosting')]"
"appServicePlanName": "[concat(parameters('appName'),'-hosting')]",
"env": [
{
"name": "WEBSITES_ENABLE_APP_SERVICE_STORAGE",
"value": "false"
},
{
"name": "DEBUG",
"value": "False"
},
{
"name": "SECRET_KEY",
"value": "[parameters('secretKey')]"
},
{
"name": "DATABASE_URL",
"value": "[variables('databaseConnectionString')]"
}
]
},
"resources": [
{
Expand Down Expand Up @@ -181,20 +199,7 @@
"[parameters('adminContactEmail')]",
"[parameters('adminPassword')]"
],
"environmentVariables": [
{
"name": "DEBUG",
"value": "False"
},
{
"name": "SECRET_KEY",
"value": "[parameters('secretKey')]"
},
{
"name": "DATABASE_URL",
"value": "[variables('databaseConnectionString')]"
}
],
"environmentVariables": "[variables('env')]",
"resources": {
"requests": {
"cpu": "1",
Expand Down Expand Up @@ -226,24 +231,7 @@
"siteConfig": {
"linuxFxVersion": "[concat('DOCKER|', parameters('dockerImageName'))]",
"alwaysOn": true,
"appSettings": [
{
"name": "WEBSITES_ENABLE_APP_SERVICE_STORAGE",
"value": "false"
},
{
"name": "DEBUG",
"value": "False"
},
{
"name": "SECRET_KEY",
"value": "[parameters('secretKey')]"
},
{
"name": "DATABASE_URL",
"value": "[variables('databaseConnectionString')]"
}
]
"appSettings": "[variables('env')]"
},
"serverFarmId": "[resourceId('Microsoft.Web/serverfarms', variables('appServicePlanName'))]"
}
Expand Down

0 comments on commit 25522d4

Please sign in to comment.