Skip to content

Instantly share code, notes, and snippets.

@jugyo
Created June 12, 2012 01:48
Show Gist options
  • Save jugyo/2913904 to your computer and use it in GitHub Desktop.
Save jugyo/2913904 to your computer and use it in GitHub Desktop.
easy way to share files on heroku with basic auth
use Rack::Auth::Basic do |username, password|
username == 'username' && password == 'password'
end
run Rack::Directory.new "./foo"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment