2017-11-07 2 views
0

Ich habe die Node.js-Version auf 8.8.1 aktualisiert und in den Prozessumgebungsvariablen iisnode.yml, Web.config und package.json aktualisiert.Azure-App bricht beim Aktualisieren ab Knotenversion

Dennoch fordert gehen jetzt an die App mit folgendem Fehler abgelehnt bekommen:

The iisnode module is unable to start the node.exe process. Make sure the node.exe executable is available at the location specified in the https://github.com/tjanczuk/iisnode/blob/master/src/samples/configuration/web.config>system.webServer/iisnode/@nodeProcessCommandLine element of web.config. By default node.exe is expected in one of the directories listed in the PATH environment variable.

Ich habe versucht, den Dateipfad in Kudu aktualisieren Sie den Pfad zum node.exe zu reflektieren mich interessiert ("D: \ Programme (x86) \ nodejs \ 8.1.1 \ node.exe"), aber ein Fehler wurde gemeldet, dass ich nicht dazu berechtigt war.

Die relevanten Dateien:

iisnode.yml:

nodeProcessCommandLine: "D:\Program Files (x86)\nodejs\8.1.1\node.exe" 
loggingEnabled: true 
devErrorsEnabled: true 

Web.config

<?xml version="1.0" encoding="utf-8"?> 
<!-- 
    For more information on how to configure your Node.js application, please visit 
    --> 
<configuration> 
    <appSettings> 
    <!-- 
    <add key="StorageAccountName" value="" /> 
    <add key="StorageAccountKey" value="" /> 
    <add key="ServiceBusNamespace" value="" /> 
    <add key="ServiceBusIssuerName" value="" /> 
    <add key="ServiceBusIssuerSecretKey" value="" /> 
    --> 
    </appSettings> 
    <system.webServer> 
    <!-- mimeMap enables IIS to serve particular file types as specified by fileExtension. --> 
    <staticContent> 
     <mimeMap fileExtension=".svg" mimeType="image/svg+xml" /> 
    </staticContent> 

    <modules runAllManagedModulesForAllRequests="false" /> 

    <!-- Web.Debug.config adds attributes to this to enable remote debugging when publishing in Debug configuration. --> 
     <!--<iisnode watchedFiles="web.config;*.js;routes\*.js;views\*.pug"/>--> 

    <!-- Remote debugging (Azure Website with git deploy): Comment out iisnode above, and uncomment iisnode below. --> 
    <iisnode watchedFiles="web.config;*.js;routes\*.js;views\*.pug" 
     loggingEnabled="true" 
     devErrorsEnabled="true" 
     nodeProcessCommandLine="D:\Program Files (x86)\nodejs\8.8.1\node.exe &#45;&#45;debug"/> 

    <!-- indicates that the server.js file is a Node.js application 
    to be handled by the iisnode module --> 
    <handlers> 
     <add name="iisnode" path="index.js" verb="*" modules="iisnode" /> 

     <!-- Remote debugging (Azure Website with git deploy): Uncomment NtvsDebugProxy handler below. 
     Additionally copy Microsoft.NodejsTools.WebRole to 'bin' from the Remote Debug Proxy folder.--> 
     <add name="NtvsDebugProxy" path="ntvs-debug-proxy/blablabla" verb="*" resourceType="Unspecified" 
     type="Microsoft.NodejsTools.Debugger.WebSocketProxy, Microsoft.NodejsTools.WebRole"/> 
    </handlers> 

    <security> 
     <requestFiltering> 
     <hiddenSegments> 
      <remove segment="bin" /> 
     </hiddenSegments> 
     </requestFiltering> 
    </security> 

    <rewrite> 
     <rules> 
     <clear /> 
     <!-- Remote debugging (Azure Website with git deploy): Uncomment the NtvsDebugProxy rule below. --> 
     <rule name="NtvsDebugProxy" enabled="true" stopProcessing="true"> 
      <match url="^ntvs-debug-proxy/.*"/> 
     </rule> 

     <!-- Don't interfere with requests for node-inspector debugging --> 
     <rule name="NodeInspector" patternSyntax="ECMAScript" stopProcessing="true"> 
      <match url="^server.js\/debug[\/]?" /> 
     </rule> 

     <rule name="app" enabled="true" patternSyntax="ECMAScript" stopProcessing="true"> 
      <match url="iisnode.+" negate="true" /> 
      <conditions logicalGrouping="MatchAll" trackAllCaptures="false" /> 
      <action type="Rewrite" url="index.js" /> 
     </rule> 
     </rules> 
    </rewrite> 
    </system.webServer> 

    <!-- Remote debugging (Azure Website with git deploy): uncomment system.web below --> 
    <system.web> 
    <httpRuntime targetFramework="4.5"/> 
    <customErrors mode="Off"/> 
    </system.web> 
</configuration> 

Antwort

1

In iisnode.yml haben Sie nodeProcessCommandLine zu 8.1.1 zeigen statt 8.8.1. Vielleicht ist es nur das?

+0

Behoben, und es begann zu arbeiten! Vielen Dank! –

Verwandte Themen