Home > Web Front-end > JS Tutorial > body text

How to deal with frequent manual restarts after node modifications

php中世界最好的语言
Release: 2018-05-30 10:03:26
Original
1246 people have browsed it

This time I will show you how to deal with the need for frequent manual restarts after node modifications. What are the precautions? Here are practical cases, let's take a look.

During the development process, every time after modifying the code and saving it, we need to manually restart the program to see the effect of the changes. This tedious problem can be solved by using supervisor, global installation supervisor:

npm install -g supervisor
Copy after login

Run supervisor --harmony server startup program, as shown below:

supervisor will monitor the files with node and js suffixes in the current directory. When these files are changed, supervisor will automatically restart the program.

I believe you have mastered the method after reading the case in this article. For more exciting information, please pay attention to other related articles on the php Chinese website!

Recommended reading:

How to use nodeJs crawler

How to use Vue page skeleton screen injection

The above is the detailed content of How to deal with frequent manual restarts after node modifications. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!