Permalink
Browse files

add run in app.rb

  • Loading branch information...
1 parent 685878c commit 9604f97813072bcfa29de200f0bf261ad1addd4d @miaoufkirsh miaoufkirsh committed Jan 21, 2012
Showing with 2 additions and 1 deletion.
  1. +1 −0 Gemfile
  2. +1 −1 app.rb
View
@@ -0,0 +1 @@
+gem "rack-oauth2-server", :git => "https://github.com/twinge/rack-oauth2-server.git"
View
2 app.rb
@@ -95,5 +95,5 @@ class MyApp < Sinatra::Base
get "/list_tokens" do
oauth.list_access_tokens("Batman").map(&:token).join(" ")
end
-
+ run! if app_file == $0
end

0 comments on commit 9604f97

Please sign in to comment.