mirror of
https://github.com/goldbergyoni/nodebestpractices.git
synced 2025-10-29 00:19:14 +08:00
Update README.md
Fix typo on line 1128 (child process -> child processes)
This commit is contained in:
@ -1125,7 +1125,7 @@ CMD [ "node", "dist/app.js" ]
|
||||
|
||||
## ![✔] 8.2. Bootstrap using `node` command, avoid `npm start`
|
||||
|
||||
**TL;DR:** use `CMD ['node','server.js']` to start your app, avoid using npm scripts which don't pass OS signals to the code. This prevents problems with child-process, signal handling, graceful shutdown and having zombie processes.
|
||||
**TL;DR:** use `CMD ['node','server.js']` to start your app, avoid using npm scripts which don't pass OS signals to the code. This prevents problems with child-processes, signal handling, graceful shutdown and having zombie processes.
|
||||
|
||||
**Otherwise:** When no signals are passed, your code will never be notified about shutdowns. Without this, it will lose its chance to close properly possibly losing current requests and/or data.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user