Ruby: Make a static website from your sinatra app with 75loc
github.com
github.com
wget --mirror --page-requisites --convert-links localhost:9292
But this is probably more robust.EDIT: for bonus points, cd into your wget-created mirror, fire up an http server with
python -m SimpleHTTPServer
Then check for any broken links with wget --spider --page-requisites locahost:8000
wget is cool.Ultimately though, correct use of cache headers and varnish or similar gives you the same effect automatically, if you're just looking for speed.
I could then fire up an image browser and quickly see if any pages looked wonky ( missing or misaligned images images, crappy text layout, etc.).
wget is very cool. :)
If you can get away with static content for your public facing website, or at least most of it, I think it's generally worth it for you to do that.
require 'sinatra'
Just put everything else in the public subfolder of the script, and run it.If you want the public folder to be the root, you can make it in two lines:
require 'sinatra'
set :public_folder, '.'