T
T
tefoxis2019-10-10 11:21:46
linux
tefoxis, 2019-10-10 11:21:46

Node.JS How to start a web application automatically on reboot?

Hello!
There is a web application, it was necessary periodically. Started npm start or gulp watch.
But now it is necessary that it constantly works and starts on its own during reboots.
What is the right way to do it in this case?
thanks in advance

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
Eugene, 2019-10-10
@Nc_Soft

pm2
supervisor
crontab

P
pfg21, 2019-10-10
@pfg21

write a script for systemd, he will run it for you at system startup and restart if the application crashes.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question