Author Topic: NodeJS - Setup & Start up the App  (Read 1356 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
NodeJS - Setup & Start up the App
« on: December 30, 2022, 12:59:52 PM »
Hello people.
I need to migrate a NodeJs App + MongoDB to my CWP Pro server.

I was able to install without any problem the MongoDB and deploy the NodeJS manager from my CWP pannel.

I putt the backup of my App under: /home/user/public_html
Run "NPM Install"

Then i go to the NodeJs manager and as per instruction i set all params as requested.

My StartUp File is called "server.js"
And for URL (HTTP or HTTPS URI which will link your application) from the drop menu i selected the domain and put the port number 3000 on wich the app is running. It says that it will automatically create the mapping.


Then i save and run the App. It says that the App properly started without errors.

But when i'm open the url it get me error 503 Service Unavailable


I tried to open ports (3000 and 8000(backend)) and then i tried to disable the firewall but nothing..

I'm pretty sure that i miss something... Please, give me some help.
Thank you.


Offline
***
Re: NodeJS - Setup & Start up the App
« Reply #1 on: December 31, 2022, 04:20:37 AM »
try  use webserver apache only

if work then you must focuss  on configuration with nginx