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
- Have an Azure account with an active subscription. [Create an account for free](https://azure.microsoft.com/free/?utm_source=campaign&utm_campaign=vscode-tutorial-app-service-extension&mktingSource=vscode-tutorial-app-service-extension).
33
-
- Install [Node.js and npm](https://nodejs.org). Run the command `node --version` to verify that Node.js is installed.
33
+
- Install [Node.js LTS and npm](https://nodejs.org). Run the command `node --version` to verify that Node.js is installed.
34
34
- Install <ahref="/cli/azure/install-azure-cli"target="_blank">Azure CLI</a>, with which you run commands in any shell to provision and configure Azure resources.
35
35
36
36
::: zone-end
@@ -39,7 +39,7 @@ This quickstart configures an App Service app in the **Free** tier and incurs no
- Have an Azure account with an active subscription. [Create an account for free](https://azure.microsoft.com/free/?utm_source=campaign&utm_campaign=vscode-tutorial-app-service-extension&mktingSource=vscode-tutorial-app-service-extension).
42
-
- Install [Node.js and npm](https://nodejs.org). Run the command `node --version` to verify that Node.js is installed.
42
+
- Install [Node.js LTS and npm](https://nodejs.org). Run the command `node --version` to verify that Node.js is installed.
43
43
- Have a FTP client (for example, [FileZilla](https://filezilla-project.org)), to connect to your app.
44
44
45
45
::: zone-end
@@ -53,20 +53,19 @@ In this step, you create a starter Node.js application and make sure it runs on
53
53
1. Create a simple Node.js application using the [Express Generator](https://expressjs.com/starter/generator.html), which is installed by default with Node.js and NPM.
54
54
55
55
```bash
56
-
npx express-generator myExpressApp --view pug
56
+
npx express-generator myExpressApp --view ejs
57
57
```
58
58
59
59
1. Change to the application's directory and install the NPM packages.
60
60
61
61
```bash
62
-
cd myExpressApp
63
-
npm install
62
+
cd myExpressApp && npm install
64
63
```
65
64
66
-
1. Start the development server.
65
+
1. Start the development server with debug information.
67
66
68
67
```bash
69
-
npm start
68
+
DEBUG=myexpressapp:* npm start
70
69
```
71
70
72
71
1. In a browser, navigate to `http://localhost:3000`. You should see something like this:
@@ -165,7 +164,7 @@ Before you continue, ensure that you have all the prerequisites installed and co
In the terminal, make sure you're in the *myExpressApp* directory, and deploy the code in your local folder (*myExpressApp*) using the `az webapp up` command:
167
+
In the terminal, make sure you're in the *myExpressApp* directory, and deploy the code in your local folder (*myExpressApp*) using the [az webapp up](/cli/azure/webapp#az-webapp-up) command:
169
168
170
169
# [Deploy to Linux](#tab/linux)
171
170
@@ -283,16 +282,16 @@ Azure App Service supports [**two types of credentials**](deploy-configure-crede
283
282
284
283
You can deploy changes to this app by making edits in Visual Studio Code, saving your files, and then redeploy to your Azure app. For example:
285
284
286
-
1. From the sample project, open *views/index.pug* and change
285
+
1. From the sample project, open *views/index.ejs* and change
2. Save your changes, then redeploy the app using the `az webapp up`command again with no arguments:
307
+
2. Save your changes, then redeploy the app using the [az webapp up](/cli/azure/webapp#az-webapp-up)command again with no arguments:
309
308
310
309
```azurecli
311
310
az webapp up
@@ -362,7 +361,7 @@ az webapp log tail
362
361
363
362
The command uses the resource group name cached in the *.azure/config* file.
364
363
365
-
You can also include the `--logs` parameter with then `az webapp up` command to automatically open the log stream on deployment.
364
+
You can also include the `--logs` parameter with then [az webapp up](/cli/azure/webapp#az-webapp-up) command to automatically open the log stream on deployment.
366
365
367
366
Refresh the app in the browser to generate console logs, which include messages describing HTTP requests to the app. If no output appears immediately, try again in 30 seconds.
0 commit comments