Hacker News new | ask | show | jobs
by thinkingkong 3345 days ago
For anyone that doesn't know, python has a handy one-liner on the command line.

python -m SimpleHTTPServer

Works like a charm.

3 comments

Also while on this topic of starting up quick, simple servers for whatever reason like testing etc. I've also had success with Web Server for Chrome which supposedly even works fine on Chromebooks.

https://github.com/kzahel/web-server-chrome

I have had problems with it streaming medium sized video files. Node's http-server was able to serve it.
I shared the link, since it was hosting webm based videos like a champ. I figured Fro wouldn't mind :)

The old solution we had been trying was weblite, and that needs all the user-content data to be manually added to weblite. Now I get to be lazy, cross platform, and have stand alone binaries ;)