Console log when running nodejs application

mhoathjaltelin

Registered
Mar 26, 2020
2
0
1
Denmark
cPanel Access Level
Root Administrator
Hello,

I am currently debugging a nodejs application that is being deployed on our cpanel server through the nodejs application handler (installing into virtualenv).

The project is working perfectly fine local, but some of the functions are failing on the server (eg. image upload), where i can't see any log to help me out.

Locally i get errors in the terminal, but can't see that in the terminal on cPanel.
What is the best way to debug a nodejs application on cpanel?


Thanks,
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,296
1,252
313
Houston
Hello,

You'd have to be able to view the console log to view errors. You could create a custom startup file but even for that you'd need to have access to add an Apache include - How to Install a Node.js Application | cPanel & WHM Documentation

If you have access to WHM you could view the console log through the terminal in WHM while logged in as the root user.