Flotype / now

NowJS makes it easy to build real-time web apps using JavaScript
http://www.nowjs.com
MIT License
1.91k stars 175 forks source link

use relative paths for now in the examples. #110

Closed AD7six closed 13 years ago

AD7six commented 13 years ago

using require("now") assumes users have installed now via npm -g. that may not be the case, and if you checkout from github this will mean the examples are not using the rest of the git checked-out code

ericz commented 13 years ago

Hmm would this mean they must run the node server.js command from within the directory where the server is located?

As opposed to node now/examples/someexample/server.js?

AD7six commented 13 years ago

no, the ../ is relative to the file, not the cwd.

does that work :D I didn't know - I would always cd to the working dir for the project

ericz commented 13 years ago

Thanks AD7six