'How to run NodeJs file continuously in cPanel through Application Manager

I did install nodejs16 with all relevant modules in cPanel and after registering the application in the Application manager the index.js is not running continuously.

the current setup is cPanel with CentOS 7 no cloudlinux available

I check the steps from here https://docs.cpanel.net/knowledge-base/web-services/how-to-install-a-node.js-application/

but still not working the app shows errors like CORS error or not found on the route links



Solution 1:[1]

It doesn't sound like an issue within the Application Manager of cPanel. Your app should be served just fine if you've followed the steps. I would recommend checking the code of your app first. If you still experience difficulties using the Application Manager and you are sure that there are no issues with your app, then I would recommend trying to:

  1. Deploy and start your NodeJS app manually through SSH.
  2. Find a managed hosting provider which will take care of the deployment of the app for you. In case you decide to go with this one, maybe you can find some useful info here: https://hostadvice.com/nodejs-hosting/

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 BrunoMirchevski