File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ description: Learn how to secure connectivity to back-end Azure services that do
4
4
ms.devlang : javascript
5
5
# ms.devlang: javascript, azurecli
6
6
ms.topic : tutorial
7
- ms.date : 10/26/2021
7
+ ms.date : 08/02/2024
8
8
author : cephalin
9
9
ms.author : cephalin
10
10
@@ -25,20 +25,20 @@ Clone the sample repository locally and deploy the sample application to App Ser
25
25
# Clone and prepare sample application
26
26
git clone https://github.com/Azure-Samples/app-service-language-detector.git
27
27
cd app-service-language-detector/javascript
28
- zip default.zip *.*
28
+ zip -r default.zip .
29
29
30
30
# Save app name as variable for convenience
31
31
appName=<app-name>
32
32
33
33
az appservice plan create --resource-group $groupName --name $appName --sku FREE --location $region --is-linux
34
- az webapp create --resource-group $groupName --plan $appName --name $appName --runtime "node|14 -lts"
34
+ az webapp create --resource-group $groupName --plan $appName --name $appName --runtime "node:18 -lts"
35
35
az webapp config appsettings set --resource-group $groupName --name $appName --settings SCM_DO_BUILD_DURING_DEPLOYMENT=true
36
- az webapp deployment source config-zip -- resource-group $groupName --name $appName --src ./default.zip
36
+ az webapp deploy -- resource-group $groupName --name $appName --src-path ./default.zip
37
37
```
38
38
39
39
The preceding commands:
40
40
* Create a linux app service plan
41
- * Create a web app for Node.js 14 LTS
41
+ * Create a web app for Node.js 18 LTS
42
42
* Configure the web app to install the npm packages on deployment
43
43
* Upload the zip file, and install the npm packages
44
44
You can’t perform that action at this time.
0 commit comments