is it possible node.js to start js files which are not located on the same machine where the node is started? (Something like node.exe http://myserver.com/app.js)
Thanks!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you want to execute the file locally you could retrieve the remote file and then execute it locally.
Otherwise you’ll have to configure (probably by writing a script in Node, PHP, or whatever your preferred web scripting language is) the remote server to execute the file itself when you make a certain request. This has security implications, however—you’ll need to take measures to protect against unauthorized requests using, say, HTTP basic authentication.