Skip to content

Instantly share code, notes, and snippets.

@corporealfunk
Created March 6, 2012 07:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save corporealfunk/1984799 to your computer and use it in GitHub Desktop.
Save corporealfunk/1984799 to your computer and use it in GitHub Desktop.
Serving static files with Rack
root=Dir.pwd
puts ">>> Serving: #{root}"
run Rack::Directory.new("#{root}")
# using thin:
# thin -R static.ru start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment