skip to Main Content

I want to access node app terminal in production if there is a way, as in development we can access terminal to see activities, events and log messages, but in production(cPanel) i did not find such tool which i can use to view runtime error to solve any error in the code.
If you know any solution regard this problem, please answer me, i am looking very seriously at it.Thanks, any help will be appriciated

2

Answers


  1. Use pm2 for production nodejs app.

    npm i pm2 -g
    

    PM2 is a production process manager for Node.js applications with a built-in load balancer. It allows you to keep applications alive forever, to reload them without downtime and to facilitate common system admin tasks.

    Login or Signup to reply.
  2. You’re welcome 🙏🏼
    Shared hosts do not have access to the terminal at all
    You have to buy the virtual private server (VPS) so you can run your nodejs app and access terminal.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search