click "win-x64/"
Choose "node.exe" to download.
After saving the file, upload node.exe to an /App_Data directory on the site.
Create a new text file and name it "iisnode.yml". In that file add the following line: nodeProcessCommandLine: "server path to file"
For the example above where node.exe was placed into /App_Data the syntax would be:
nodeProcessCommandLine: "H:\root\home\username-001\www\site1\App_Data\node.exe"
To test the update, create a separate .js file and add the following syntax to display the version of node.js the site is using:
var http = require('http');
http.createServer(function(req,res) {
res.writeHead(200, {'Content-Type': 'text/html'});
res.end('Node.js ' + process.version);
}).listen(process.env.PORT);
Article ID: 2205, Created: November 16, 2021 at 9:47 PM, Modified: November 16, 2021 at 9:55 PM