You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This `.devcontainer` directory contains the configuration for a [dev container](https://docs.github.com/codespaces/setting-up-your-project-for-codespaces/adding-a-dev-container-configuration/introduction-to-dev-containers). It lets you open the repository in a [GitHub codespace](https://docs.github.com/codespaces/overview).
4
+
5
+
The dev container is configured to have the [Azure Developer CLI](https://learn.microsoft.com/azure/developer/azure-developer-cli/overview), so you can run `azd` commands directly.
Copy file name to clipboardExpand all lines: README.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ This is a Python web app using the Flask framework and the Azure Database for Po
4
4
5
5
## Requirements
6
6
7
-
The [requirements.txt](./requirements.txt) has the following packages:
7
+
The [requirements.txt](./requirements.txt) has the following packages, all used by a typical data-driven Flask application:
8
8
9
9
| Package | Description |
10
10
| ------- | ----------- |
@@ -29,7 +29,7 @@ This project has Dev Container support, so you can open it in Github Codespaces
29
29
30
30
Steps for running the server:
31
31
32
-
1. (Optional) If you're unable to open the Dev Container, [create a Python virtual environment](https://docs.python.org/3/tutorial/venv.html#creating-virtual-environments) and activate that.
32
+
1. (Optional) If you're unable to open the Dev Container, [create a Python virtual environment](https://docs.python.org/3/tutorial/venv.html#creating-virtual-environments) and activate the virtual environment.
Copy file name to clipboardExpand all lines: azure.yaml
+23Lines changed: 23 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -8,3 +8,26 @@ services:
8
8
project: .
9
9
language: py
10
10
host: appservice
11
+
hooks:
12
+
postprovision:
13
+
posix:
14
+
shell: sh
15
+
run: echo $'\n\nApp Service app has the following settings:\n' && echo "$WEB_APP_SETTINGS" | jq -r '.[]' | sed 's/\(.*\)/\t- \1/' && echo -e $"\nSee the settings in the portal:\033[1;36m $WEB_APP_CONFIG"
16
+
interactive: true
17
+
continueOnError: true
18
+
windows:
19
+
shell: pwsh
20
+
run: Write-Host "`n`nApp Service app has the following settings:`n" $WEB_APP_SETTINGS | ConvertFrom-Json | ForEach-Object { Write-Host "\t- $_" }
21
+
interactive: true
22
+
continueOnError: true
23
+
postdeploy:
24
+
posix:
25
+
shell: sh
26
+
run: echo -e $"\n\nOpen SSH session to App Service container at:\033[1;36m $WEB_APP_SSH\033[0m" && echo -e $"Stream App Service logs at:\033[1;36m $WEB_APP_LOG_STREAM"
27
+
interactive: true
28
+
continueOnError: true
29
+
windows:
30
+
shell: pwsh
31
+
run: Write-Host "`n`nOpen SSH session to App Service container at:`n" $WEB_APP_SSH; Write-Host "Stream App Service logs at:`n" $WEB_APP_LOG_STREAM
0 commit comments