J
J
jenya77712018-02-17 15:14:56
Node.js
jenya7771, 2018-02-17 15:14:56

How to programmatically reload a nodeJs application?

Hello, I have processes in the application that last more than 5 minutes. So I need to reload it programmatically. How can this be implemented? I run the application in cluster mode via PM2.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Tsvetkov, 2018-02-17
@jenya7771

on completion of tasks call this:process.exit(0);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question