Domain only showing Index of/ and not calling the index.ejs file
Good Day,
I am attempting to deploy a node.js and express app on a bluehost VPS via cpanel, however, I can't seem to get the domain to call on the index.ejs file.
The git repo is cloned and deployed to the Head.
a .cpanel.yml file has been created specifying all the necessary deployment tasks and written according to the docs.
Node js enabled, installed, along with npm dependencies, and the app is registered with the application manager, and deployed. The public_html directory, contains the entire git repo which includes the Views/index.ejs file When running /opt/cpanel/ea-nodejs10/bin/node app.js -- I'm returned with the "server running on port 127...." And when I log into WHM via root and run curl
---
deployment:
tasks:
- export DEPLOYPATH=/home/deltade4/public_html
- /bin/cp -R /home/deltade4/repositories/DeltaDesigns22 $DEPLOYPATH
- /bin/cp node_modules $DEPLOYPATH
- /bin/cp -R public $DEPLOYPATH
- /bin/cp -R views $DEPLOYPATH
- /bin/cp -R images $DEPLOYPATH
- /bin/cp -R css $DEPLOYPATH
- /bin/cp app.js $DEPLOYPATH
- /bin/cp package.json $DEPLOYPATH
Node js enabled, installed, along with npm dependencies, and the app is registered with the application manager, and deployed. The public_html directory, contains the entire git repo which includes the Views/index.ejs file When running /opt/cpanel/ea-nodejs10/bin/node app.js -- I'm returned with the "server running on port 127...." And when I log into WHM via root and run curl
-
Hey there! Our support for Node.JS is very limited, but have you tried the How to Install a Node.js Application | cPanel & WHM Documentation section of the documentation to see if that gets things loaded properly? 0 -
Thanks, and yes I've went over that document, 20-30 times this week and how I was able to get this far, with having all things installed and the server running. 0 -
I'm sorry to hear that isn't working well. Could you submit a ticket to our team so we can check that configuration on the system? If you do that, please post the ticket number here so I can follow along and keep the community updated with our findings. 0
Please sign in to leave a comment.
Comments
3 comments