truedat101 / jumbosocket

A simple little server for creating big ideas with Node.js + Socket.io. Serve static || dynamic + Socket.io apps.
https://github.com/truedat101/jumbosocket
4 stars 1 forks source link

Default DOCROOT doesn't work on windows, path doesn't resolve #11

Closed truedat101 closed 10 years ago

truedat101 commented 10 years ago

If I don't set a DOCROOT, the default will throw an error. We should fix this, and add a test case to verify.

Internal Server Error! Oh pshaw Reason: Error loading file: C:\Users\me\dev\projects\rtdotnext.git\C:\Users\me\dev\projects\rtdotnext.git\static\index.html because of Error: ENOENT, open 'C:\Users\me\dev\projects\rtdotnext.git\C:\Users\me\dev\projects\rtdotnext.git\static\index.html'

truedat101 commented 10 years ago

Same is true on linux:

Server at http://0.0.0.0:8000/ loading /home/dkords/dev/projects/jumbosocket.git/examples/home/dkords/dev/projects/jumbosocket.git/static/index.html... Error loading file: /home/dkords/dev/projects/jumbosocket.git/examples/home/dkords/dev/projects/jumbosocket.git/static/index.html because of Error: ENOENT, open '/home/dkords/dev/projects/jumbosocket.git/examples/home/dkords/dev/projects/jumbosocket.git/static/index.html'

truedat101 commented 10 years ago

Ideally when this is run, it's run from a node.js daemon service on some real cloud, and pointing to a script running the server.js indirectly. So my usual case, where I run 'node ./server.js' isn't realistic.

truedat101 commented 10 years ago

fixed in 0.1.19