• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Question How does node work on plesk?

MarioSmith91

New Pleskian
Greetings,

I wrote an application in node that uses a web server node set on port 3000 on this web server I created a client-side GUI (fontEnd) that allows you to do some operations such as:

- CLICK A BUTTON 'Start program number 2'
- CLICK A BUTTON 'Stop program number 2'
- Change program settings

When you click on Start program number 2 the web server sends via ajax (with the POST method) a variable to the webServer.js script which in turn triggers a function
which starts another script node (prog2.js) via the spawn method which starts a child_process, all console.log and program outputs (prog2.js) are redirected to weServer.js
via the node socket.io module. All this works perfectly if I activate node via SSH and connect to the ip of my Ex server:

- 111.111.111.111:3000


If, on the other hand, I use the domain that I set from Plesk and I activate node from the domain extension on Plesk through the Plesk nod js extension, Ex:

- mydomain.com

With port 3000 (mydomain.com:3000) it doesn't work, but it works if I just put the domain without port (mydomain.com), so it's as if Plesk set the basic web port directly

that is the 80, moreover if I try to click the button 'Start program number 2' I do not receive the redirection of the output of the second script, so I believe that I can not even

start the child_process.

Why does he do this? How does the Plesk node work? How can I get a console so I can understand what's going on? Where can I find documentation on how Plesk works on node?


Thank you in advance for your availability.


PS
Please enlighten me :)
 
Back
Top