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
Copy file name to clipboardExpand all lines: articles/app-service/includes/quickstart-python/deploy-local-git.md
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,32 +10,32 @@ You can deploy your application code from a local Git repository to Azure by con
10
10
11
11
| Instructions | Screenshot |
12
12
|:----------------|-----------:|
13
-
|[!INCLUDE [Deploy local Git Azure portal 1](./deploy-local-git-azure-portal-1.md)]| :::image type="content" source="../../media/quickstart-python/deploy-local-git-azure-portal-1-240px.png" alt-text="A screenshot showing how to locate your App Service using the search toolbar at the top of the Azure portal." lightbox="../../media/quickstart-python/deploy-local-git-azure-portal-1.png"::: |
14
-
|[!INCLUDE [Deploy local Git Azure portal 2](./deploy-local-git-azure-portal-2.md)]| :::image type="content" source="../../media/quickstart-python/deploy-local-git-azure-portal-2-240px.png" alt-text="A screenshot showing how to navigate to the deployment center in App Service and select Local Git as the deployment method." lightbox="../../media/quickstart-python/deploy-local-git-azure-portal-2.png"::: |
15
-
|[!INCLUDE [Deploy local Git Azure portal 3](./deploy-local-git-azure-portal-3.md)]| :::image type="content" source="../../media/quickstart-python/deploy-local-git-azure-portal-3-240px.png" alt-text="A screenshot showing the deployment center after saving and the remote Git URL to use for deployments." lightbox="../../media/quickstart-python/deploy-local-git-azure-portal-3.png"::: |
16
-
|[!INCLUDE [Deploy local Git Azure portal 4](./deploy-local-git-azure-portal-4.md)]| :::image type="content" source="../../media/quickstart-python/deploy-local-git-azure-portal-4-240px.png" alt-text="A screenshot showing the location of the deployment credentials in the deployment center in App Service." lightbox="../../media/quickstart-python/deploy-local-git-azure-portal-4.png"::: |
13
+
|[!INCLUDE [Deploy local Git Azure portal 1.](./deploy-local-git-azure-portal-1.md)]| :::image type="content" source="../../media/quickstart-python/deploy-local-git-azure-portal-1-240px.png" alt-text="A screenshot showing how to locate your App Service using the search toolbar at the top of the Azure portal." lightbox="../../media/quickstart-python/deploy-local-git-azure-portal-1.png"::: |
14
+
|[!INCLUDE [Deploy local Git Azure portal 2.](./deploy-local-git-azure-portal-2.md)]| :::image type="content" source="../../media/quickstart-python/deploy-local-git-azure-portal-2-240px.png" alt-text="A screenshot showing how to navigate to the deployment center in App Service and select Local Git as the deployment method." lightbox="../../media/quickstart-python/deploy-local-git-azure-portal-2.png"::: |
15
+
|[!INCLUDE [Deploy local Git Azure portal 3.](./deploy-local-git-azure-portal-3.md)]| :::image type="content" source="../../media/quickstart-python/deploy-local-git-azure-portal-3-240px.png" alt-text="A screenshot showing the deployment center after saving and the remote Git URL to use for deployments." lightbox="../../media/quickstart-python/deploy-local-git-azure-portal-3.png"::: |
16
+
|[!INCLUDE [Deploy local Git Azure portal 4.](./deploy-local-git-azure-portal-4.md)]| :::image type="content" source="../../media/quickstart-python/deploy-local-git-azure-portal-4-240px.png" alt-text="A screenshot showing the location of the deployment credentials in the deployment center in App Service." lightbox="../../media/quickstart-python/deploy-local-git-azure-portal-4.png"::: |
17
17
18
18
Next, in the root directory of your application, configure a [Git remote](https://git-scm.com/book/en/v2/Git-Basics-Working-with-Remotes) that points to Azure using the Git URL of the Azure remote obtained in a previous step.
19
19
20
20
```bash
21
21
git remote add azure <git-deployment-url>
22
22
```
23
23
24
-
You can now push code from your local Git repository to Azure using the Git remote you just configured. The default deployment branch for App Service is `master`, but many Git repositories are moving away from `master`to`main`. You can either specify the mapping from local branch name to remote branch name in the push (as shown below), or you can configure your [`DEPLOYMENT_BRANCH` app setting](../../deploy-local-git.md?tabs=cli#change-deployment-branch).
24
+
You can now push code from your local Git repository to Azure using the Git remote you just configured. The default deployment branch for App Service is `master`, but many Git repositories are moving away from `master`and using`main`. You can either specify the mapping from local branch name to remote branch name in the push (as shown below), or you can configure your [`DEPLOYMENT_BRANCH` app setting](../../deploy-local-git.md?tabs=cli#change-deployment-branch).
25
25
26
26
```bash
27
27
git push azure main:master
28
28
```
29
29
30
-
The first time you push code to Azure, Git will prompt you for the Azure deployment credentials you obtained in the previous step. Git will then cache these credentials so you won't have to reenter them on subsequent deployments.
30
+
The first time you push code to Azure, Git will prompt you for the Azure deployment credentials you obtained in the previous step. Git will then cache these credentials so you won't have to re-enter them on subsequent deployments.
31
31
32
32
### [Azure CLI](#tab/deploy-instructions-azcli)
33
33
34
34
First, configure the deployment source for your web app to be local Git using the `az webapp deployment source` command. This command will output the URL of the remote Git repository that you will be pushing code to. Make a copy of this value as you will need it in a later step.
Retrieve the deployment credentials for your application. These will be needed for Git to authenticate to Azure when you push code to Azure in a later step.
38
+
Retrieve the deployment credentials for your application. Git will need these to authenticate to Azure when you push code to Azure in a later step.
@@ -45,10 +45,10 @@ Next, in the root directory of your application, configure a [Git remote](https:
45
45
git remote add azure <git-deployment-url>
46
46
```
47
47
48
-
You can now push code from your local Git repository to Azure using the Git remote you just configured. The default deployment branch for App Service is `master`, but many Git repositories are moving away from `master`to`main`. You can either specify the mapping from local branch name to remote branch name in the push (as shown below), or you can configure your [`DEPLOYMENT_BRANCH` app setting](../../deploy-local-git.md?tabs=cli#change-deployment-branch).
48
+
You can now push code from your local Git repository to Azure using the Git remote you just configured. The default deployment branch for App Service is `master`, but many Git repositories are moving away from `master`and using`main`. You can either specify the mapping from local branch name to remote branch name in the push (as shown below), or you can configure your [`DEPLOYMENT_BRANCH` app setting](../../deploy-local-git.md?tabs=cli#change-deployment-branch).
49
49
50
50
```bash
51
51
git push azure main:master
52
52
```
53
53
54
-
The first time you push code to Azure, Git will prompt you for the Azure deployment credentials you obtained in a previous step. Git will then cache these credentials so you won't have to reenter them on subsequent deployments.
54
+
The first time you push code to Azure, Git will prompt you for the Azure deployment credentials you obtained in a previous step. Git will then cache these credentials so you won't have to re-enter them on subsequent deployments.
Copy file name to clipboardExpand all lines: articles/app-service/quickstart-python.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -213,7 +213,7 @@ Azure App Service supports multiple methods to deploy your application code to A
213
213
214
214
---
215
215
216
-
Having issues? Refer first to the [Troubleshooting guide](./configure-language-python.md#troubleshooting), otherwise, [let us know](https://aka.ms/PythonAppServiceQuickstartFeedback).
216
+
Having issues? Refer first to the [Troubleshooting guide](./configure-language-python.md#troubleshooting). If that doesn't help, [let us know](https://aka.ms/PythonAppServiceQuickstartFeedback).
217
217
218
218
## Configure startup script
219
219
@@ -283,19 +283,19 @@ For FastAPI, you must configure a custom startup command for App Service to run
283
283
284
284
## Browse to the app
285
285
286
-
Browse to the deployed application in your web browser at the URL `http://<app-name>.azurewebsites.net`. If you see a default app page, wait a minute and refresh the browser.
286
+
Browse to the deployed application in your web browser by using the URL `http://<app-name>.azurewebsites.net`. If you see a default app page, wait a minute and refresh the browser.
287
287
288
288
The Python sample code is running a Linux container in App Service using a built-in image.
289
289
290
290
:::image type="content" source="./media/quickstart-python/run-app-azure.png" alt-text="Screenshot of the app running in Azure":::
291
291
292
292
**Congratulations!** You've deployed your Python app to App Service.
293
293
294
-
Having issues? Refer first to the [Troubleshooting guide](./configure-language-python.md#troubleshooting), otherwise, [let us know](https://aka.ms/PythonAppServiceQuickstartFeedback).
294
+
Having issues? Refer first to the [Troubleshooting guide](./configure-language-python.md#troubleshooting). If that doesn't help, [let us know](https://aka.ms/PythonAppServiceQuickstartFeedback).
295
295
296
296
## Stream logs
297
297
298
-
Azure App Service captures all messages output to the console to assist you in diagnosing issues with your application. The sample apps include `print()` statements to demonstrate this capability.
298
+
Azure App Service captures all message output to the console to assist you in diagnosing issues with your application. The sample apps include `print()` statements to demonstrate this capability.
299
299
300
300
### [Flask](#tab/flask)
301
301
@@ -311,11 +311,11 @@ Azure App Service captures all messages output to the console to assist you in d
311
311
312
312
---
313
313
314
-
The contents of the App Service diagnostic logs can be reviewed using the Azure CLI, VS Code, or Azure portal.
314
+
You can review the contents of the App Service diagnostic logs by using the Azure CLI, VS Code, or the Azure portal.
315
315
316
316
### [Azure CLI](#tab/azure-cli)
317
317
318
-
First, you need to configure Azure App Service to output logs to the App Service filesystem using the [az webapp log config](/cli/azure/webapp/log#az-webapp-log-config) command.
318
+
First, you need to configure Azure App Service to output logs to the App Service filesystem by using the [az webapp log config](/cli/azure/webapp/log#az-webapp-log-config) command.
0 commit comments