[nodejs] Re: a simple http server making current folder accessible from web?

2012-10-31 Thread Josh Faul
I actually use this in my .zshrc: alias servethis=python -m SimpleHTTPServer And then I have an easily accessible bookmark for it. Very handy for testing simple things. On Sunday, October 28, 2012 5:48:39 AM UTC-6, Angelo Chen wrote: I did some google, and found out python has that:

Re: [nodejs] Re: a simple http server making current folder accessible from web?

2012-10-28 Thread Andrew Chilton
On 29 October 2012 00:48, Angelo Chen angelochen...@gmail.com wrote: I did some google, and found out python has that: python -m SimpleHTTPServer Similar to this: $ npm install -g http-server $ http-server your-folder/ It'll be served up on port 8080. You can use options to change

Re: [nodejs] Re: a simple http server making current folder accessible from web?

2012-10-28 Thread Angelo Chen
This works very well, thanks. if nodejs has a default http - server like this, that will be cool, wondering why not ? Python got one. On Monday, October 29, 2012 6:14:06 AM UTC+8, chilts wrote: On 29 October 2012 00:48, Angelo Chen angelo...@gmail.com javascript: wrote: I did some google,