Skip to content
This repository has been archived by the owner on Dec 10, 2017. It is now read-only.

Commit

Permalink
example app
Browse files Browse the repository at this point in the history
  • Loading branch information
look committed Jul 13, 2011
0 parents commit 48fb93a
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Gemfile
@@ -0,0 +1,4 @@
source :rubyforge
gem 'sinatra', '1.1.0'
gem 'thin', '1.2.7'
gem 'rack-ssl'
24 changes: 24 additions & 0 deletions Gemfile.lock
@@ -0,0 +1,24 @@
GEM
remote: http://rubygems.org/
specs:
daemons (1.1.4)
eventmachine (0.12.10)
rack (1.3.0)
rack-ssl (1.3.2)
rack
sinatra (1.1.0)
rack (~> 1.1)
tilt (~> 1.1)
thin (1.2.7)
daemons (>= 1.0.9)
eventmachine (>= 0.12.6)
rack (>= 1.0.0)
tilt (1.3.2)

PLATFORMS
ruby

DEPENDENCIES
rack-ssl
sinatra (= 1.1.0)
thin (= 1.2.7)
1 change: 1 addition & 0 deletions Procfile
@@ -0,0 +1 @@
web: bundle exec ruby app.rb -p $PORT
11 changes: 11 additions & 0 deletions app.rb
@@ -0,0 +1,11 @@
require 'sinatra'
require 'rack/ssl'

use Rack::SSL
use Rack::Auth::Basic, "Restricted Area" do |username, password|
[username, password] == ['admin', 'password']
end

get '/' do
'Hello World'
end

0 comments on commit 48fb93a

Please sign in to comment.