Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

test sinatra app for heroku

  • Loading branch information...
commit 4feaf4decc199c18cc2364fbf7aa4cc40b6de7a9 1 parent b791681
Sven Fuchs authored
Showing with 34 additions and 0 deletions.
  1. +8 −0 NOTES
  2. +20 −0 app.rb
  3. +6 −0 config.ru
8 NOTES
View
@@ -13,3 +13,11 @@ Sources:
twitter:[handle]
...
+
+Twitter Bot on Heroku
+ POST to /ping
+ check twitter timeline for unprocessed replies since last ping - 1 min
+ process tweets
+ store processed tweet ids
+ store ping timestamp
+
20 app.rb
View
@@ -0,0 +1,20 @@
+require 'rubygems'
+require 'sinatra'
+
+configure :production do
+ # Configure stuff here you'll want to only be run at Heroku at boot
+end
+
+get '/' do
+ "Congradulations!
+ You're running a Sinatra application on Heroku!"
+end
+
+get '/env' do
+ ENV.inspect
+end
+
+get '/ping' do # TODO should be post, should require some secret
+
+ ENV.inspect
+end
6 config.ru
View
@@ -0,0 +1,6 @@
+require 'app'
+
+## There is no need to set directories here anymore;
+## Just run the application
+
+run Sinatra::Application
Please sign in to comment.
Something went wrong with that request. Please try again.