node. JS Hot Update Service--supervisor

Source: Internet
Author: User

Because the current project every time you modify the file to see the effect, you must restart the service: node App.js again into the browser to see the effect, it is troublesome. Fortunately, there are a number of third-party management tools (SUPERVISOR,HOTNODE,FOREVER,PM2, etc.) that can automatically restart the node service after the file modification is saved, but need to refresh the browser to help us save development time.

$ NPM install-g Supervisor

Start the service:

Supervisor node. js

The Command window displays the following information:

[temporarily cannot be affixed, need to re-login]

In fact, Webpack is also possible to achieve real-time hot update Service, temporarily not to configure, since the use of node on node's third-party package manager.

node. JS Hot Update Service--supervisor

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.