Created
June 12, 2012 01:48
-
-
Save jugyo/2913904 to your computer and use it in GitHub Desktop.
easy way to share files on heroku with basic auth
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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