Skip to content

Commit b7e28b2

Browse files
Merge pull request #270425 from aahill/web-app-update
updating web app section
2 parents 8c9478a + f880aa1 commit b7e28b2

File tree

2 files changed

+23
-4
lines changed

2 files changed

+23
-4
lines changed

articles/ai-services/openai/how-to/use-web-app.md

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ms.service: azure-ai-openai
77
ms.topic: how-to
88
author: aahill
99
ms.author: aahi
10-
ms.date: 02/23/2024
10+
ms.date: 03/27/2024
1111
recommendations: false
1212
---
1313

@@ -45,13 +45,32 @@ When customizing the app, we recommend:
4545

4646
Sample source code for the web app is available on [GitHub](https://github.com/microsoft/sample-app-aoai-chatGPT). Source code is provided "as is" and as a sample only. Customers are responsible for all customization and implementation of their web apps.
4747

48-
### Updating the web app
49-
50-
We recommend pulling changes from the `main` branch for the web app's source code frequently to ensure you have the latest bug fixes, API version, and improvements.
48+
## Updating the web app
5149

5250
> [!NOTE]
5351
> After February 1, 2024, the web app requires the app startup command to be set to `python3 -m gunicorn app:app`. When updating an app that was published prior to February 1, 2024, you need to manually add the startup command from the **App Service Configuration** page.
5452
53+
We recommend pulling changes from the `main` branch for the web app's source code frequently to ensure you have the latest bug fixes, API version, and improvements. Additionally, the web app must be synchronized every time the API version being used is [retired](../api-version-deprecation.md#retiring-soon).
54+
55+
**If you haven't customized the app:**
56+
* You can follow the synchronization steps below
57+
58+
**If you've customized or changed the app's source code:**
59+
* You will need to update your app's source code manually and redeploy it.
60+
* If your app is hosted on GitHub, push your code changes to your repo, and use the synchronization steps below.
61+
* If you're redeploying the app manually (for example Azure CLI), follow the steps for your deployment strategy.
62+
63+
64+
### Synchronize the web app
65+
66+
1. If you've customized your app, update the app's source code.
67+
1. Navigate to your web app in the [Azure portal](https://portal.azure.com/).
68+
1. Select **Deployment center** in the navigation menu, under **Deployment**.
69+
1. Select **Sync** at the top of the screen, and confirm that the app will be redeployed.
70+
71+
:::image type="content" source="../media/use-your-data/sync-app.png" alt-text="A screenshot of web app synchronization button on the Azure portal." lightbox="../media/use-your-data/sync-app.png":::
72+
73+
5574
## Chat history
5675

5776
You can enable chat history for your users of the web app. When you enable the feature, your users will have access to their individual previous queries and responses.
117 KB
Loading

0 commit comments

Comments
 (0)