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
az webapp up --sku B1 --name $APP_NAME --runtime "PYTHON|3.10"
91
80
```
92
81
93
82
- If the `az` command isn't recognized, be sure you have the Azure CLI installed as described in [Set up your initial environment](#set-up-your-initial-environment).
@@ -134,7 +123,7 @@ The Python sample code is running a Linux container in App Service using a built
134
123
135
124
# [Bash](#tab/bash)
136
125
137
-
```bash
126
+
```text
138
127
python3 manage.py runserver
139
128
```
140
129
@@ -167,6 +156,7 @@ In this section, you make a small code change and then redeploy the code to Azur
167
156
Open *hello/views.py* in an editor and update the `hello` function to match the following code.
168
157
169
158
```bash
159
+
cd python-docs-hello-django
170
160
cat << 'EOF' > hello/views.py
171
161
def hello(request):
172
162
print("Handling request to home page.")
@@ -177,18 +167,7 @@ EOF
177
167
Save your changes, then redeploy the app using the `az webapp up` command again:
Once deployment is complete, switch back to the browser window open to `http://<app-name>.azurewebsites.net`. Refresh the page, which should display the modified message:
@@ -207,7 +186,7 @@ You can access the console logs generated from inside the app and the container
207
186
To stream logs, run the [az webapp log tail](/cli/azure/webapp/log#az-webapp-log-tail) command:
208
187
209
188
```azurecli
210
-
az webapp log tail
189
+
timeout 11 az webapp log tail
211
190
```
212
191
213
192
You can also include the `--logs` parameter with the `az webapp up` command to automatically open the log stream on deployment.
0 commit comments