Skip to content

Commit

Permalink
Try to fix Pusher.app_id setting
Browse files Browse the repository at this point in the history
  • Loading branch information
rwdaigle committed May 23, 2011
1 parent 44e6fda commit 6457c47
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
5 changes: 2 additions & 3 deletions DEMO
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,17 @@ bundle install
# Create & configure

heroku create ryan-tweetstream --stack cedar
heroku config:set TWITTER_USERNAME=rwdaigle TWITTER_PASSWORD=mypass TWITTER_KEYWORD=ruby
heroku config:add TWITTER_USERNAME=rwdaigle TWITTER_PASSWORD=mypass TWITTER_KEYWORD=ruby
heroku addons:add pusher:test redistogo:small
heroku addons:upgrade logging:expanded releases:advanced
git push heroku master

# Run/scale

heroku scale web=1 stream=1 clock=1
heroku scale web=1 stream=1 clock=1 worker=1

# Introspect

watch heroku ps
heroku releases
heroku logs --tail -s app
/resque
3 changes: 2 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@ require 'resque/tasks'

STDOUT.sync = true

Pusher.app_id = 5700

task "tweetstream:stream" do
Pusher.app_id = TweetStream::Client.new(ENV["TWITTER_USERNAME"], ENV["TWITTER_PASSWORD"]).track(ENV["TWITTER_KEYWORD"]) do |status|
TweetStream::Client.new(ENV["TWITTER_USERNAME"], ENV["TWITTER_PASSWORD"]).track(ENV["TWITTER_KEYWORD"]) do |status|
puts "Processing tweet: #{status[:text]}"
Resque.enqueue(IndexTweet, status)
Pusher['tweets'].trigger('tweet', status)
Expand Down

0 comments on commit 6457c47

Please sign in to comment.