Node.js hosting on cloudways just not winning with getting site live

I am using Cloudways for hosting on a Digital ocean server.

Published my app to public_html folder and changed .htaccess file to redirect correctly with the following config:

RewriteEngine On RewriteBase / RewriteRule ^(.*)?$ http://127.0.0.1:3000/$1 [P,L]

Getting the following error when running node index.js file:

module.js:478 throw err; ^

Please help

Community Page
Last updated: