Skip to content

Commit d6453cc

Browse files
committed
Azd support
1 parent 2d08291 commit d6453cc

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

infra/resources.bicep

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,7 @@ resource web 'Microsoft.Web/sites@2022-03-01' = {
106106
name: 'appsettings'
107107
properties: {
108108
SCM_DO_BUILD_DURING_DEPLOYMENT: 'true'
109-
DBHOST: postgresServer.name
110-
DBNAME: flaskDatabase.name
111-
DBUSER: postgresServer.properties.administratorLogin
112-
DBPASS: databasePassword
109+
AZURE_POSTGRESQL_CONNECTIONSTRING: 'dbname=${flaskDatabase.name} host=${postgresServer.name}.postgres.database.azure.com port=5432 sslmode=require user=${postgresServer.properties.administratorLogin} password=${databasePassword}'
113110
SECRET_KEY: secretKey
114111
FLASK_DEBUG: 'False'
115112
}

0 commit comments

Comments
 (0)