Hi all,

I'm having a rather weird issue on the Cedar stack,

suppose you have this code:

```
require 'eventmachine'
require 'em-http'
require 'json'

url = 'https://stream.twitter.com/1/statuses/filter.json'

def twitter_user
ENV['TWITTER_USERNAME'] || "your_twitter_handle"
end

def twitter_password
ENV['TWITTER_PASSWORD'] || "your_twitter_pass"
end

def users_to_follow
# ev, jack
"20, 12"
end

def creds
[twitter_user, twitter_password]
end

EventMachine.run do
puts "Et c'est partie"
buffer = ""
http = EventMachine::HttpRequest.new(url).post(
:body => { 'follow' => users_to_follow },
:head => { 'Authorization' => creds },
:keepalive => true)
http.stream do |chunk|
buffer += chunk
while line = buffer.slice!(/.+\r?\n/)
puts line.inspect
end
end
end
```

All this does is setup a stream to twitter which will output any tweet
made by `users_to_follow`. If you run this in a console (`heroku run
console` and paste it in), it"ll work without a hitch. If you set it
up as a process to run (using the `Procfile`), it looks like it
doesn't want to start.

What makes things even weirder is that when using the twitter sample
stream, it does work. Any thoughts?

-- 
You received this message because you are subscribed to the Google Groups 
"Heroku" group.
To post to this group, send email to heroku@googlegroups.com.
To unsubscribe from this group, send email to 
heroku+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en.

Reply via email to