I've been trying Node.js running in Windows Azure Emulator, but unfortunatelly it isn't working. Of course, I started from beginning, Hello World application, following steps in this tutorial.
I followed the steps below with 4 different computers and in all cases the page didn't show anything.
- I opened Windows PowerShell environment as Administrator.
- I created node directory
- I entered the command: PS C:\node> New-AzureService tasklist
- I entered the command: PS C:\node\tasklist> Add-AzureNodeWebRole
Here, my application was created with the code above:
var http = require('http');
var port = process.env.port || 1337;
http.createServer(function (req, res) {
res.writeHead(200, { 'Content-Type': 'text/plain' });
res.end('Hello World\n');
}).listen(port);
- And finally, I entered the command: PS C:\node\tasklist\WebRole1> Start-AzureEmulator -launch
Now I was supposed to see my hello world page. The question is, if somebody had success with the given tutorial? And what Am I doing wrong?