diff --git a/README.md b/README.md index 9c4b5a1fa5..e95a5b7308 100644 --- a/README.md +++ b/README.md @@ -95,9 +95,10 @@ To enable message feedback, you will need to set up CosmosDB resources. Then spe You can use the [Azure CLI](https://learn.microsoft.com/en-us/cli/azure/install-azure-cli) to deploy the app from your local machine. Make sure you have version 2.48.1 or later. -If this is your first time deploying the app, you can use [az webapp up](https://learn.microsoft.com/en-us/cli/azure/webapp?view=azure-cli-latest#az-webapp-up). Run the following command from the root folder of the repo, updating the placeholder values to your desired app name, resource group, location, and subscription. You can also change the SKU if desired. +If this is your first time deploying the app, you can use [az webapp up](https://learn.microsoft.com/en-us/cli/azure/webapp?view=azure-cli-latest#az-webapp-up). Run the following two commands from the root folder of the repo, updating the placeholder values to your desired app name, resource group, location, and subscription. You can also change the SKU if desired. -`az webapp up --runtime PYTHON:3.10 --sku B1 --name --resource-group --location --subscription ` +1. `az webapp up --runtime PYTHON:3.11 --sku B1 --name --resource-group --location --subscription ` +1. `az webapp config set --startup-file "python3 -m gunicorn app:app" --name ` If you've deployed the app previously, first run this command to update the appsettings to allow local code deployment: @@ -107,9 +108,10 @@ Check the runtime stack for your app by viewing the app service resource in the Check the SKU in the same way. Use the abbreviated SKU name in the argument below, e.g. for "Basic (B1)" the SKU is `B1`. -Then, use the `az webapp up` command to deploy your local code to the existing app: +Then, use these commands to deploy your local code to the existing app: -`az webapp up --runtime --sku --name --resource-group ` +1. `az webapp up --runtime --sku --name --resource-group ` +1. `az webapp config set --startup-file "python3 -m gunicorn app:app" --name ` Make sure that the app name and resource group match exactly for the app that was previously deployed.