frontend/node.js

Node.js: supervisor install and usage

seul chan 2018. 4. 7. 14:18

When you use node.js during devloping, you should restart every time when you edit code.

For solving this issue, you can use supervisor for watch project changing.

Supervisor is famouse npm package that download over 817,724 time (data from npm-stat.com)

Install

Install by npm

npm install supervisor -g

Usage

Usage is simple. Instead of node app.js command, just use supervisor app.js. Then it automatically detect changes from code and restart server.

supervisor app.js

for more information, check supervisor documentation.



'frontend > node.js' 카테고리의 다른 글

Node.js: pug usage (new name of jade)  (0) 2018.04.08