Browse Source

Extract duplicate environment definition

pull/72/head
Clemens Wolff 5 years ago
parent
commit
8785deccd2
1 changed files with 21 additions and 33 deletions
  1. 54
      azuredeploy.json

54
azuredeploy.json

@ -101,7 +101,25 @@
"databaseVersion": "9.6", "databaseVersion": "9.6",
"databaseServerName": "[concat(parameters('appName'),'-state')]", "databaseServerName": "[concat(parameters('appName'),'-state')]",
"setupScriptName": "[concat(parameters('appName'),'-setup')]", "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": [ "resources": [
{ {
@ -181,20 +199,7 @@
"[parameters('adminContactEmail')]", "[parameters('adminContactEmail')]",
"[parameters('adminPassword')]" "[parameters('adminPassword')]"
], ],
"environmentVariables": [
{
"name": "DEBUG",
"value": "False"
},
{
"name": "SECRET_KEY",
"value": "[parameters('secretKey')]"
},
{
"name": "DATABASE_URL",
"value": "[variables('databaseConnectionString')]"
}
],
"environmentVariables": "[variables('env')]",
"resources": { "resources": {
"requests": { "requests": {
"cpu": "1", "cpu": "1",
@ -226,24 +231,7 @@
"siteConfig": { "siteConfig": {
"linuxFxVersion": "[concat('DOCKER|', parameters('dockerImageName'))]", "linuxFxVersion": "[concat('DOCKER|', parameters('dockerImageName'))]",
"alwaysOn": true, "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'))]" "serverFarmId": "[resourceId('Microsoft.Web/serverfarms', variables('appServicePlanName'))]"
} }

Loading…
Cancel
Save