Skip to content

Commit 951dde1

Browse files
committed
remove infra-related files
1 parent 619d479 commit 951dde1

File tree

9 files changed

+9
-1725
lines changed

9 files changed

+9
-1725
lines changed

.github/workflows/azure-dev.yaml

Lines changed: 0 additions & 61 deletions
This file was deleted.

.vscode/launch.json

Lines changed: 0 additions & 25 deletions
This file was deleted.

azure.yaml

Lines changed: 0 additions & 33 deletions
This file was deleted.

azureproject/production.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

33
# Configure Postgres database based on connection string of the libpq Keyword/Value form
44
# https://www.postgresql.org/docs/current/libpq-connect.html#LIBPQ-CONNSTRING
5-
conn_str = os.environ['AZURE_POSTGRESQL_CONNECTIONSTRING']
6-
conn_str_params = {pair.split('=')[0]: pair.split('=')[1] for pair in conn_str.split(' ')}
7-
8-
DATABASE_URI = 'postgresql+psycopg2://{dbuser}:{dbpass}@{dbhost}/{dbname}'.format(
9-
dbuser=conn_str_params['user'],
10-
dbpass=conn_str_params['password'],
11-
dbhost=conn_str_params['host'],
12-
dbname=conn_str_params['dbname']
13-
)
5+
# Uncomment the following lines for App Service
6+
# conn_str = os.environ['AZURE_POSTGRESQL_CONNECTIONSTRING']
7+
# conn_str_params = {pair.split('=')[0]: pair.split('=')[1] for pair in conn_str.split(' ')}
8+
# DATABASE_URI = 'postgresql+psycopg2://{dbuser}:{dbpass}@{dbhost}/{dbname}'.format(
9+
# dbuser=conn_str_params['user'],
10+
# dbpass=conn_str_params['password'],
11+
# dbhost=conn_str_params['host'],
12+
# dbname=conn_str_params['dbname']
13+
# )

0 commit comments

Comments
 (0)