Re: Rake tasks to start workers and Tweetstream
Did you fix this ? Le vendredi 15 avril 2011 04:55:13 UTC-4, Daryl a écrit : > > What I'm trying to do: Spin up daemonizedTweetsteam via a heroku rake > tweetstream:start task and have it run with a worker. > > Basic idea is this: > tweetstream.rake > > class TweetStreamRunner > def self.start > # Account username and password go in new daemon and then keywords > you want to grabin track > # If want combos of words in a a particular tweet best to handle > in query in controller code > TweetStream::Daemon.new(ENV['TWITTER_USERNAME'], > ENV['TWITTER_PASSWORD']).track('term1', 'term', etc) do |status| > # Grab all tweets from the stream tracking the keywords listed > end > end > end > > namespace :tweetstream do > desc "Fires up the TweetStream daemon" > task :start => :environment do > TweetStreamRunner.start > end > end > > Keep getting this error when I get heroku rake tweetstream:start > > ERROR: no command given > > Usage: tweetstream -- > > * where is one of: > start start an instance of the application > stop stop all instances of the application > > Stumped since I do, in fact, believe I'm doing this with the daemon > I've got here. > > Anyone got any pointers as to what I'm doing wrong? (And yes, this is > a repost since I realized I may have asked the question in the wrong > way or confusingly before). > > Help appreciated, > thanks ! > Daryl. > PS> I should point out I have this working on EC2 no problem, it just > seems to be porting it to heroku and using MongoHQ (now working) and > using a background worker for tweetstream that seem to be the problem. > > > -- You received this message because you are subscribed to the Google Groups "Heroku" group. 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_US?hl=en
Re: Permission Denied (publickey) Error
What did you change on your firewall? On Thursday, September 29, 2011 5:54:32 AM UTC-4, Krishna wrote: > > Hi All, > > Now it's working fine 4 me. Problem is Only Firewall. After opening > Firewall for Heroku server it's working fine. > > Thanks allot 4 all > > Thanks & Regards, > Hari Krishna. > > On Sep 24, 3:08 pm, anandvc wrote: > > You should follow the instructions given here: > http://devcenter.heroku.com/articles/keys > > > > to generate and then add your keys to heroku. > > > > - Anand > > > > On Sep 15, 4:57 pm, Krishna wrote: > > > > > > > > > Hi All, > > > > > I am new to Heroku platform, Now I am working withJava-Spring > > > application, Today I am testing with sample given in herokujava > > > workbook but i am facing Permission Denied (publickey) Error. Could > > > you please anyone give quick response 4 this error. > > > > > Command I used: > > > > > git push heroku master > > > Permission denied (publickey). > > > fatal: The remote end hung up unexpectedly > > > > > info: > > > destination address: heroku.com > > > Port 22 is opened for Firewall. > > > > > Thanks & Regards, > > > Krishna. -- You received this message because you are subscribed to the Google Groups "Heroku" group. 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_US?hl=en