Skip to content

Commit 5373d15

Browse files
committed
VSCode launch support and newline fixes
1 parent 054be81 commit 5373d15

File tree

7 files changed

+32
-7
lines changed

7 files changed

+32
-7
lines changed

.github/workflows/azure-dev.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,4 @@ jobs:
3535
env:
3636
AZURE_ENV_NAME: ${{ secrets.AZURE_ENV_NAME }}
3737
AZURE_LOCATION: ${{ secrets.AZURE_LOCATION }}
38-
AZURE_SUBSCRIPTION_ID: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
38+
AZURE_SUBSCRIPTION_ID: ${{ secrets.AZURE_SUBSCRIPTION_ID }}

.github/workflows/python-test.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
fail-fast: false
1515
matrix:
1616
os: ["ubuntu-20.04"]
17-
python_version: ["3.11"]
17+
python_version: ["3.8", "3.9", "3.10", "3.11"]
1818
services:
1919
postgres:
2020
image: postgres:11
@@ -50,4 +50,4 @@ jobs:
5050
DBNAME: postgres
5151
DBHOST: localhost
5252
DBUSER: postgres
53-
DBPASS: postgres
53+
DBPASS: postgres

.vscode/launch.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"name": "Run server",
9+
"type": "python",
10+
"request": "launch",
11+
"module": "flask",
12+
"env": {
13+
"FLASK_APP": "app.py",
14+
"FLASK_DEBUG": "1"
15+
},
16+
"args": [
17+
"run",
18+
"--no-debugger",
19+
"--no-reload"
20+
],
21+
"jinja": true,
22+
"justMyCode": true
23+
}
24+
]
25+
}

azure.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ services:
66
web:
77
project: .
88
language: py
9-
host: appservice
9+
host: appservice

infra/main.bicep

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ param location string
1414
param databasePassword string
1515

1616
@secure()
17-
@description('Django SECRET_KEY for securing signed data')
17+
@description('Flask SECRET_KEY for securing signed data')
1818
param secretKey string
1919

2020
var resourceToken = toLower(uniqueString(subscription().id, name, location))

infra/main.parameters.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@
1515
"value": "$(secretOrRandomPassword)"
1616
}
1717
}
18-
}
18+
}

startup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
flask db upgrade
22
gunicorn --workers 2 --threads 4 --timeout 60 --access-logfile \
33
'-' --error-logfile '-' --bind=0.0.0.0:8000 \
4-
--chdir=/home/site/wwwroot app:app
4+
--chdir=/home/site/wwwroot app:app

0 commit comments

Comments
 (0)