Skip to content

Commit d4098b2

Browse files
authored
Merge pull request #85774 from SalehAlbuga/patch-1
PM2 doesn't start automatically in Node 14 and 16
2 parents 4879ba5 + c7fbbe1 commit d4098b2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

articles/app-service/configure-language-nodejs.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,9 @@ You can also configure a custom start file with the following extensions:
166166
- A *.js* file
167167
- A [PM2 file](https://pm2.keymetrics.io/docs/usage/application-declaration/#process-file) with the extension *.json*, *.config.js*, *.yaml*, or *.yml*
168168

169+
> [!NOTE]
170+
> Starting from **Node 14 LTS**, the container doesn't automatically start your app with PM2. To start your app with PM2, set the startup command to `pm2 start <.js-file-or-PM2-file> --no-daemon`. Be sure to use the `--no-daemon` argument because PM2 needs to run in the foreground for the container to work properly.
171+
169172
To add a custom start file, run the following command in the [Cloud Shell](https://shell.azure.com):
170173

171174
```azurecli-interactive
@@ -403,4 +406,4 @@ If you use [ZIP deployment](deploy-zip.md) (through Visual Studio Code, for exam
403406

404407
Or, see additional resources:
405408

406-
[Environment variables and app settings reference](reference-app-settings.md)
409+
[Environment variables and app settings reference](reference-app-settings.md)

0 commit comments

Comments
 (0)