I've an API designed with Express configured to run on PM2 rather than on node process.
I'm using ventraIP shared hosting server with cPanel. CPanel provides an option to setup NodeJS app -> configure directory -> do NPM install and UI tools to run, restart or stop the application. The image below show the UI configuration options provided in cPanel.
The application works fine when started with the Setup NodeJS menu run. But to my understanding this takes the startup file configuration for the app and run node for that file when we click start.
I don't want that to happen. I would like to run specific script to boot the server. Here I would be using "pm2 start . I don't find a way to achieve this.
Is there a way where we could run a NodeJS app manually through terminal and have control over it. I want PM2 to handle the application process.
Server: ventraIP shared hosting plan Technology: Node JS Express API with Maria DB



