Skip to content Skip to sidebar Skip to footer

Node 0.11.x In Azure Web Site

I am trying to get a node app running on Azure with version 0.11.x of node, so I can take advantage of some new features (e.g. generators & Koa). I have read this question and

Solution 1:

The following works for me: I have node.exe in d:\home\site\wwwroot and I have the following in my web.config:

<configuration>    <system.webServer>      <handlers>       <add name="iisnode" path="server.js" verb="*" modules="iisnode" />      </handlers>     <iisnode nodeProcessCommandLine="d:\home\site\wwwroot\node.exe" />    </system.webServer> </configuration>

Solution 2:

Well I found a workaround to the problem, hopefully this saves someone else some time.

It looks like the problem is that the IISNODE.YML file needs to be ANSI encoded. When I created the file from Visual Studio 2013, it chose UTF8 as the default encoding for the file.

To correct the problem, save the file with ANSI encoding. For eample, you can do this by open the file in notepad, then doing Save As... and pick the Encoding as ANSI.

I looked briefly at the source code for "iisnode" and it appears that the problem is in this code:

CModuleConfiguration::ApplyYamlConfigOverrides

although I didn't have time to test it yet.

Post a Comment for "Node 0.11.x In Azure Web Site"