Node Project hot Update Supervisor,ignore Ignore file does not take effect issue

Source: Internet
Author: User

There is a lot of information on the role, installation and use of supervisor on the Internet, and we do not introduce it here.
Git address: https://github.com/petruisfan/node-supervisor

The main point here is to use Supervisor to ignore the file:

After executing Supervisor index, node restarts as soon as there is a file change in the entire directory file.

Now you want to ignore the update of the folder views, that is, node does not restart when you change the file under the Views folder. Execute command:

Supervisor-i views Index

After executing the command, it is found that the change of the file under the views can still trigger node restart, and modify the execution command to:

Supervisor-i Views,.git Index

Changing the file under the Views folder at this time does not trigger node restart. Reason:

Item is pulled down with Gitlab, there are. git files, only ignore Views folder, because the Views folder under the changes in the file will affect. git, so although the views are ignored, but the. git file has changed, so the node restart is still triggered.

Related Article

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.