Tag: iis

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

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

在IIS中发布express js应用程序的步骤

任何人都可以build议我在本地发布快速js节点应用程序的确切步骤是什么? 我提到的大部分链接都有web.config文件。 我不清楚它是否应该由我们自己产生。 我的项目涉及express js 4.14.0与express js 4.14.0 handlebars 4.0.1和tedious的数据库连接。 另外,请一步一步告诉我所需的先决条件和安装。

平均堆栈安装在端口80或iis下

我有一个平均堆栈应用程序,现在在Node Js和端口3000上工作。我有一个Windows Server 2016,我需要部署.Net应用程序,所以我需要IIS。 我不能使端口80上运行两个Web服务器,但我不希望用户被迫input运行我的意思应用程序的端口。 我试图与iisnode合作,但没有成功,我还阅读了有关反向代理为了将端口80上的请求redirect到另一个端口。 这两个解决scheme都可以是有效的,但是,在将其他时间花在错误的方向上之前,我会问在这种情况下最好的做法是什么。 更新:向前一步。 我现在可以访问应用程序的加载页面,但是应用程序找不到我的bundle.js(由Webpack创build的包)。 module.exports = webpackMerge.smart(commonConfig, { entry: { 'app': './assets/app/main.aot.ts' }, output: { path: path.resolve(__dirname + '/public/js/app'), filename: 'bundle.js', publicPath: '/js/app/', chunkFilename: '[id].[hash].chunk.js' }, 我的web.config是: <configuration> <system.webServer> <handlers> <add name="iisnode" path="start.js" verb="*" modules="iisnode" /> </handlers> <rewrite> <rules> <rule name="tep"> <match url="/*" /> <action type="Rewrite" url="start.js" /> </rule> </rules> […]

Webpack开发服务器到Node / IIS

我做了一个React应用程序,目前我正在使用webpack dev服务器在本地托pipe它。 我现在需要部署并在Windows Server中将此应用程序作为服务运行,以便能够closuresWindows会话并仍然运行该应用程序。 现在,我真的不知道webpack dev服务器是如何工作的…我曾经在NodeJS项目上工作,只需运行“node {file}”服务器运行,并以“永远”的扩展名作为服务运行。 我如何使这个应用程序作为服务运行? 我在本地托pipe我的应用程序的方式是使用“npm start”,它根据package.json运行一个webpack-dev-server。 package.json(只是一个部分): "scripts": { "start": "webpack-dev-server –hot –open", "lint": "eslint src" },

通过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已经改变了这个过程。

在iis上使用HttpPlatformHandler运行node.js应用程序

我试图在iis上运行“Hello World”样本node.js服务器: var http = require('http'); var server = http.createServer(function(req, res) { res.writeHead(200, {"Content-Type":"text/plain"}); res.end("Hello World\n"); }) server.listen(3000); console.log('server is running'); 使用这个web.config: <?xml version="1.0" encoding="UTF-8"?> <configuration> <system.webServer> <handlers> <add name="httpplatformhandler" path="*" verb="*" modules="httpPlatformHandler" resourceType="Unspecified" requireAccess="Script" /> </handlers> <httpPlatform stdoutLogEnabled="true" stdoutLogFile="node.log" startupTimeLimit="20" processPath="C:\Program Files\nodejs\node.exe C:\Users\username\Tests\nodeHandlerTest\app.js"> <environmentVariables> </environmentVariables> </httpPlatform> </system.webServer> </configuration> 它不工作! 任何想法是什么问题与我的web.config文件?

iisnode在Windows 7 IIS 7.5投掷500.19错误

我已经按照这个github页面上提到的步骤。 但即使做了上述所有事情之后,我一直在尝试运行由issnode软件包附带的setupsamples.bat文件安装的示例应用程序,但仍经常发生内部服务器错误。 我附上了屏幕截图和相关的代码文件。 这是hello.js文件 var http = require('http'); http.createServer(function (req, res) { res.writeHead(200, {'Content-Type': 'text/html'}); res.end('Hello, world! [helloworld sample; iisnode version is ' + process.env.IISNODE_VERSION + ', node version is ' + process.version + ']'); }).listen(process.env.PORT); 和web.config文件 <configuration> <system.webServer> <!– indicates that the hello.js file is a node.js application to be handled by the iisnode […]

Azure应用程序服务将主体大小限制为〜64kB

我在Azure上托pipe了Node.js应用程序。 这是定价层“Default2(免费)”中的“Web应用程序”。 当我尝试发送JSON大于64kB的服务器返回HTTP错误413(“请求实体太大”)身体Payload Too Large 。 在Web.config文件中设置这个没有帮助: <configuration> <system.webServer> <security> <requestFiltering> <requestLimits maxAllowedContentLength="102400000" /> </requestFiltering> </security> </system.webServer> </configuration>

在iisnode上运行时从nodeJS应用程序执行cmd命令不起作用

我们有一个从CMD执行一个小命令的web应用程序 require('child_process').execSync 当我使用npm start运行服务时,所有工作都很完美,但是当我们将其移动到iisnode时,它停止工作。 例如: p4 depots不能工作了。 IIS由Admin用户运行。 如果我直接从cmd运行命令它可以工作,但是当我从iisnode调用它时,它不会。 错误: {“Error”:true,“Message”:“Error p4 CMD”,“Origmsg”:{“killed”:false,“code”:1,“signal”:null,“cmd”:“C:\ Windows \ system32 \ cmd.exe / s / c \“p4 depots \”“}} 过去有没有人有同样的问题?

端口在IISNode上运行的Azure Node.js应用程序中未定义

我有一个使用IISNode运行Node.js应用程序的Azure应用程序服务。 问题是process.env.PORT是未定义的。 我已经读过IISNode使用一个叫做命名pipe道的东西,并且端口信息可能不易读(?),但是在我的情况下,我只能得到未定义的信息。 我尝试部署的项目可以从GitHubfind 。 我有一个Web.config文件定义,它看起来像这样: <handlers> <!– indicates that the app.js file is a node.js application to be handled by the iisnode module –> <add name="iisnode" path="index.js" verb="*" modules="iisnode" /> </handlers> <rewrite> <rules> <!– Don't interfere with requests for node-inspector debugging –> <rule name="NodeInspector" patternSyntax="ECMAScript" stopProcessing="true"> <match url="^index.js\/debug[\/]?" /> </rule> <!– First we consider […]