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 <[email protected] <javascript:>> 
> 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 the 
> port (-p), address (-a) to listen on and whether to show an auto-index 
> file (-i). It's brilliant. :) 
>
> Cheers, 
> Andy 
>
> -- 
> Andrew Chilton 
> e: [email protected] <javascript:> 
> w: http://appsattic.com/ 
> t: https://twitter.com/andychilton 
> p: +64 21 891 681 
>

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to