Operating System & Version
CentOs 7
cPanel & WHM Version
Latest

erience

Registered
Feb 24, 2021
2
0
1
India
cPanel Access Level
Root Administrator
I have deployed a Node.js Application using the following Tutorial : Node.js Hosting Configuration and Installing Node.js Apps | cPanel Blog

However no where its mentioned, how to Keep Alive Node.js. I have installed PM2 also. but with PM2 this command
Code:
/opt/cpanel/ea-nodejs10/bin/node app.js
is not working

Any Ideas on how to keep alive Node.js Application. The moment i close the Terminal window from WHM, script dies.
 
Last edited by a moderator:

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
15,139
2,406
363
cPanel Access Level
Root Administrator
Hey there! Can you try working through the guide here? That has more detail than the blog post and is a page we keep updated:

 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
15,139
2,406
363
cPanel Access Level
Root Administrator
I believe that is normal behavior. In the instructions it says you will need to open a separate terminal window to perform the tests in step 2 and 3 of the application testing. After that, you'd need to perform the steps under registering the application as well as the startup file.

As mentioned on the top of the page, our support is extremely limited for these tools.