Tag: iisnode

我应该为iisnode设置哪个pipe理pipe道模式?

当使用IISNode在IIS上提供nodejs应用程序时,将pipe理的pipe道设置为经典还是集成更好?

在iisnode的web.config for Express中设置规则

在iisnode中提供的例子只处理一个文件(比如hello.js),并且在web.config文件中设置了一个规则: <!– indicates that the hello.js file is a node.js application to be handled by the iisnode module –> <handlers> <add name="iisnode" path="hello.js" verb="*" modules="iisnode" /> </handlers> <rewrite> <rules> <rule name="myapp"> <match url="myapp/*" /> <action type="Rewrite" url="hello.js" /> </rule> </rules> </rewrite> 当处理普通的快速应用程序时,我们应该使用bin/www作为默认启动。 我目前只是replacebin/www hello.js ,是这样做的正确方法?

Azure网站从Visual Studio发布后不刷新

我正在构buildNode.JS应用程序,它具有一些视图和大量的公共REST API。 每当我改变我的JS文件(控制器或路线),我写商业逻辑,并尝试发布它们,Visual Studio向导显示正确的差异,并在发布后,我可以看到服务器文件系统上的修改文件(使用Kudu的debugging控制台)但是当我使用POSTMAN命中API时,我看到了旧的响应。 我试着用Cache-Control发送请求:no-cache头也是一样的响应。 但是,当我停下来再次启动服务时,我开始根据我最新的代码获得更新的响应。 看起来像Azure网站或iisnodecaching代码正在运行,任何想法如何避免/破坏caching,以便发布后立即我可以执行最新的代码,并不需要重新启动?

如何解决Azure中的500.1002错误?

成功构build我们的应用程序后,我们有500.1001或500.1002错误。 我们尝试将我们的应用程序捆绑到root和public – error 500.我们尝试更正iisnode.yml参数(maxNamedPipeConnectionRetry和namedPipeConnectionRetryDelay)。 我们的应用程序始终在服务器上 <?xml version="1.0" encoding="utf-8"?> <webSocket enabled="false" /> <handlers> <add name="iisnode" path="/public/server.bundle.js" verb="*" modules="iisnode"/> </handlers> <rewrite> <rules> <rule name="NodeInspector" patternSyntax="ECMAScript" stopProcessing="true"> <match url="^server.bundle.js\/debug[\/]?" /> </rule> <rule name="StaticContent"> <action type="Rewrite" url="public{REQUEST_URI}"/> </rule> <rule name="DynamicContent"> <conditions> <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="True"/> </conditions> <action type="Rewrite" url="/public/server.bundle.js"/> </rule> </rules> </rewrite> <security> <requestFiltering> <hiddenSegments> <remove segment="bin"/> </hiddenSegments> […]

如何debugging本地运行的Azure node.js Web服务

这个高尚的目标如何实现呢? 我已经改变了我的web.config包含这个: <iisnode debuggingEnabled="true" loggingEnabled="true" devErrorsEnabled="true" /> 而当我在我模拟的Webangular色http://localhost/server.js/debug/上打开这个URL时,我得到这个: iisnode模块无法部署初始化debugging器所需的支持文件。 请检查运行node.js应用程序的IIS应用程序池的标识是否具有对node.js应用程序所在的服务器上的目录的读写权限。

socket.io路由问题与node.js表示3应用程序运行在虚拟目录与iisnode

错误: 尝试访问http://localhost/appDirectory/socket.io会给出: Cannot GET /appDirectory/socket.io 或者在尝试加载页面上的客户端文件时将其另辟蹊I我遇到此错误: GET http://localhost/appDirectory/socket.io/socket.io.js 404 (Not Found) 如果我加载客户端文件作为静态内容连接线产生这个错误: GET http://localhost/appDirectory/socket.io/1/?t=1365535131937 404 (Not Found) 服务器代码: var express = require('express'), namespace = require('express-namespace'), routes = require('./routes'), http = require('http'), app = express(), server = app.listen(process.env.PORT), io = require('socket.io').listen(server); var appDir = '/appDirectory'; app.configure(function(){ app.set('env', process.env.NODE_ENV || 'development'); app.set('/views', __dirname + '/views'); app.set('view engine', […]

iisnode无法在Windows 8上find我的32位node.js安装

我已经通过msi安装程序安装了iisnode x64和nodejs x32,导致node.is被安装在 c:\program files (x86)\nodejs 它已成功安装在PATH环境variables。 从命令行运行“节点”无处不在。 它不从IIS工作,因为它提出了这个信息: iisnode模块无法启动node.exe进程。 确保node.exe可执行文件在web.config的system.webServer/iisnode/@nodeProcessCommandLine元素中指定的位置可用。 默认情况下,需要在PATH环境variables中列出的其中一个目录中使用node.exe。 我已经尝试了这个博客的build议 – 即在web.config中手动设置path。 这没有帮助。 我也试过重新安装节点。 有小费吗?

通过IIS部署Node.js服务器 – 如何运行服务器?

我试图在IIS上使用插件IISnode在IIS上设置生产Node.js服务器,如下所示: http ://www.amazedsaint.com/2011/09/creating-10-minute-todo-listing-app-on html的 我不明白的是如何运行我的Server.js文件。 这里的示例显示了用户链接到url中的hello.js文件,但是如何在本地运行我的节点服务时运行它? 我通常只打开一个命令提示符窗口并运行“nodemon server.js”,但是IIS已经改变了这个过程。

Windows IIS8上的Nodejs不起作用

我使用快递的nodejs应用程序,我想在Windows IIS上承载。 在我的IIS8 nodejs正在工作。 但我得到一个错误“无法GET /节点/ paradify /服务器.js”,我把重写规则在web.config。 那么我得到了以下错误。 HTTP错误500.19 – 内部服务器错误请求的页面无法访问,因为页面的相关configuration数据无效。 我在互联网上发现。 大家build议下面的configuration,但不是在我的窗户上工作 我的web.config文件是: <configuration> <system.webServer> <handlers> <add name="iisnode" path="server.js" verb="*" modules="iisnode" /> </handlers> <defaultDocument> <files> <add value="server.js" /> </files> </defaultDocument> <rewrite> <rules> <rule name="LogFile" patternSyntax="ECMAScript" stopProcessing="true"> <match url="^[a-zA-Z0-9_\-]+\.js\.logs\/\d+\.txt$"/> </rule> <rule name="NodeInspector" patternSyntax="ECMAScript" stopProcessing="true"> <match url="^server.js\/debug[\/]?" /> </rule> <rule name="StaticContent"> <action type="Rewrite" url="public{REQUEST_URI}"/> </rule> […]

如何重新启动iisnode?

我们在Windows 2008R2服务器上使用IIS 7.5的iisnode。 node.js应用程序在启动时加载一些configuration数据。 有时configuration数据发生变化,应用程序需要重新启动。 当通过Windows系统pipe理器控制台重新启动IIS站点实例一切工作正常。 当通过appcmd stop和appcmd start命令重新启动IIS时,node.js-app不会再次启动。 它看起来像iisnode不能识别IIS的重新启动。 一个iisnode环境中的node.js应用程序如何通过命令重新启动(即通过命令行)?