Skip to content

Instantly share code, notes, and snippets.

@robertjwhitney
Created September 15, 2011 23:39
Show Gist options
  • Save robertjwhitney/1220812 to your computer and use it in GitHub Desktop.
Save robertjwhitney/1220812 to your computer and use it in GitHub Desktop.
# gem install thin
# gem install rack
# thin -R static.ru start
# The static content rooted in the current working directory
# Dir.pwd => http://localhost:3000/
#
root=Dir.pwd
puts ">>> Serving: #{root}"
run Rack::Directory.new("#{root}")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment