Hi guys, Hi guys,
Ok, so I've succesfully developed a daemon that fires up EventMachine, subscribe to a data feed and communicate that data to Pusherapp.com Everything is working beautifully in production on my OSX development machine, and now I want to deploy to Heroku. My initial understanding was that the Heroku workers would suite this purpose well, however I've come to realize that I might be wrong. My question is, how do I run a daemon in the Heroku environment? Some facts: Ruby 1.9.2 bamboo-mri-1.9.2 (beta) Rails3 Daemons gem: https://rubygems.org/gems/daemons The deamon_generator plugin: https://github.com/dougal/daemon_generator An old Railscast that describes approx. how a daemon like this is set up: http://railscasts.com/episodes/129-custom-daemon How the daemon works: I've setup a rake task to start the daemon, briefly, this is the process: 1. Rake task calls "lib/daemons/my_daemon_ctl start" 2. Require some gems and start daemon: Daemons.run File.dirname(__FILE__) + "/my_daemon.rb", options 3. Loads rails env and starts the EventMachine reactor: EventMachine::run { data feed and pusherapp black magic here } -- You received this message because you are subscribed to the Google Groups "Heroku" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/heroku?hl=en.
