server needs restart after changing the node application content

#1
Hi,

I am running the latest version of ubuntu and LSWS on a vps server. I am trying to run multiple node applications on this server.

Everytime I make changes to app.js, I need to restart the lsws server, which affects all other applications. Is there a way to avoid this? I tried nodemon, but nodemon seems to leave a terminal window in limbo, which is not convenient in a vps setting. How do I resolve this - whenever any file in the node application changes, the system should automatically restart that particular node js application? The document is not clear on this, any solution or links to relevent solutions would be much appreciated.
 
#2
I assume you are using app context from the OpenLiteSpeed. Since OpenLiteSpeed comes with Node in detached mode by default, you will need to restart the service to make any new settings take effect. If the app is still under development, maybe you can consider using node to serve the app, and set OLS reverse proxy to the service.
 
Top