Node.js on Plesk showing default Plesk page

Multi tool use
Multi tool use


Node.js on Plesk showing default Plesk page



I've created a new site in Node.js to host on my Plesk instance and I've set everything up, but the default plesk page is still showing.



I've already tried a lot of things, but I can't seem to get it to work.



Node.js app:


function startServer(app, port, sslPort) {
http.createServer(app).listen(port, () => {
console.log('Server started');
console.log(`Listening on port ${port}`);
})
}

startServer(app, process.env.PORT || 8080);



Note: app is an Expressjs instance.



The git repo has been initialised and the files are showing up.
NPM install worked just fine, no problem there



Branch: development
Additional deploy commands: npm install


npm install



When I check passenger with grep -r 'mod_passenger' /var/www/vhosts/system/domain.com/conf/
It returns


passenger


grep -r 'mod_passenger' /var/www/vhosts/system/domain.com/conf/


/var/www/vhosts/system/domain.com/conf/httpd.conf: <IfModule mod_passenger.c>
/var/www/vhosts/system/domain.com/conf/httpd.conf: <IfModule mod_passenger.c>
/var/www/vhosts/system/domain.com/conf/httpd.conf.bak: <IfModule mod_passenger.c>
/var/www/vhosts/system/domain.com/conf/httpd.conf.bak: <IfModule mod_passenger.c>



When logging in with SSH and running the commands manually, it works just fine.



I'm pretty clueless at the moment.





Did you set a correct document root? Try to check instructions - docs.plesk.com/en-US/onyx/administrator-guide/…
– Elvis Plesky
Jul 2 at 15:59










By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

KwYluRMAnsj
d6mw,bNeowXG 1CN85SC Zndw8G,Yeaw4iChJBYWNVH,rfVyI6QRtR3lRzgnSon5AimpsN9y5T7W7l5fPha3G

Popular posts from this blog

Rothschild family

Cinema of Italy