forked from tjanczuk/iisnode
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix tjanczuk#143: ignore nonexistent files and directories on the iis…
…node\@watchedFiles list
- Loading branch information
Showing
4 changed files
with
30 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
/* | ||
A simple GET request receives a hello world response despite watched files directories do not exist | ||
*/ | ||
|
||
var iisnodeassert = require("iisnodeassert"); | ||
|
||
iisnodeassert.sequence([ | ||
iisnodeassert.get(10000, "/121_watchedFiles/hello.js", 200, "Hello, world!") | ||
]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
var http = require('http'); | ||
|
||
http.createServer(function (req, res) { | ||
res.writeHead(200, {'Content-Type': 'text/html'}); | ||
res.end('Hello, world!'); | ||
}).listen(process.env.PORT); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<configuration> | ||
<system.webServer> | ||
<handlers> | ||
<add name="iisnode" path="hello.js" verb="*" modules="iisnode" /> | ||
</handlers> | ||
<iisnode watchedFiles="*.js;idontexist\*"/> | ||
</system.webServer> | ||
</configuration> |