3 ms·
Please note that `python -m SimpleHTTPServer 8000` only works with python2.*.
by edem 12y ago
Please note that `python -m SimpleHTTPServer 8000` only works with python2.*.
- posnet 12y agoPython 3 equivalent is: `python -m http.server 8000` In case anyone was interested.
- ghuntley 12y agoThank you.
- danneu 12y agoList of server one-liners: https://gist.github.com/willurd/5720255 https://gist.github.com/willurd/5720255
- iheartramen 12y agoOops, fixed thank you!
- markvdb 12y agoWhy not simply use file:///home/username/websitename/index.html ?
- mxxx 12y agoi 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.
- iheartramen 12y agoHmm 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?