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