Run a webrick server to serve static html content in a folder

2014-09-19

Need a quick way to serve html files?

Want to quickly share your static website to the rest of the world, this snippet might help:

  /directory/to/static/html$ ruby -run -e httpd . -p 9000

Reference:

Tenderlove’s Twitter

I’m currently working on fyra.sh, a CLI-first static site deployment tool where you push your site and it’s served globally through a built-in CDN, without the overhead of heavy platforms.