Answer the question
In order to leave comments, you need to log in
How to reload a Node.js script from under the same script?
Sometimes you need to reload a Node.js script. The client sends a GET requesting a reboot, the server reboots and re-establishes communication with the client. How to organize the reloading of Node.js with a simple command in the script itself? (Not reload when changing script) There are no similar modules in Google and NPM :(
UPD: You can kill the process with a native command, process.exit(0)
but then how to restart the process?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question