aaronblohowiak / Push-It

JavaScript push server and client, developing real-time web applications should be easy.. now you can do it in js

Home Page:http://aaronblohowiak.github.com/Push-It

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

connect.static (not .staticProvider) in /examples/debug/server.js

bensheldon opened this issue · comments

Line 22-24 of /examples/debug/server.js is:

var server = connect.createServer( 
  connect.staticProvider(__dirname + '/static')
);

...but should be...

var server = connect.createServer( 
  connect.static(__dirname + '/static')
);

Sorry for the minor bugfix, but it throws an error and seems like a common-ish issue.

this was only in the examples/debug/server.js, so I added the connect 0.1.0 devDependency which will pull in the version of connect that used staticProvider instead of static.