Home  >  Article  >  Web Front-end  >  How to deal with frequent manual restarts after node modifications

How to deal with frequent manual restarts after node modifications

php中世界最好的语言
php中世界最好的语言Original
2018-05-30 10:03:261280browse

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

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!

Statement:
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