News for hackers. Stuff that matters.
Re:Make This in an Hour by edem on Sunday March 29, 2015 @04:39AM (#9284237)
Please note that `python -m SimpleHTTPServer 8000` only works with python2.*.
Re:Make This in an Hour by posnet on Sunday March 29, 2015 @04:44AM (#9284245)
Python 3 equivalent is:

`python -m http.server 8000`

In case anyone was interested.

Re:Make This in an Hour by danneu on Sunday March 29, 2015 @06:36AM (#9284408)
List of server one-liners: https://gist.github.com/willurd/5720255
Re:Make This in an Hour by iheartramen on Sunday March 29, 2015 @10:18AM (#9284887)
Oops, fixed thank you!
Re:Make This in an Hour by ghuntley on Sunday March 29, 2015 @06:08AM (#9284366)
Thank you.
Re:Make This in an Hour by markvdb on Sunday March 29, 2015 @06:32AM (#9284403)
Why not simply use file:///home/username/websitename/index.html ?
Re:Make This in an Hour by mxxx on Sunday March 29, 2015 @06:34AM (#9284405)
i guess it wouldn't matter in this particular example, but some browsers apply different security restrictions to the file:// protocol than they do to http.
Re:Make This in an Hour by iheartramen on Sunday March 29, 2015 @10:18AM (#9284886)
Hmm I guess I haven't done that in a really long time, but I remember years ago running into issues because local files wouldn't reload immediately when I made changes to them (cached?) and have avoided it since. Don't know if other people have ever run into this?