Rake Task to Generate Static Site This gist creates rake task static:generate that starts at the root_url of your rails app, and mirrors the site from there namespace :static do desc 'Generate static site in ./out/ directory' task :generate do Dir.mkdir 'out' unless File.exist? 'out' Dir.chdir 'out' do `wget -mnH http://localhost:3000/` end `rsync -ruv --exclude=.svn/ public/ out/` end desc 'Run tiny HTTP server from ./out/ directory' task :server do Dir.chdir 'out' do puts 'Started HTTP server at http://localhost:8000/. Press CTRL+C to exit.' `python -m SimpleHTTPServer` end end end