Permalink
Browse files

Add TRUDY_QUEUE to enable queuing in concurrent deployments

  • Loading branch information...
1 parent 9f33276 commit 81d3c08ed197b9b9eb57f3e7c205c7da52f77975 @quimarche committed Oct 1, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 trudy.rb
View
@@ -5,11 +5,12 @@
# heroku addons:add rabbitmq
# heroku config:add TRUDY_HOST=<app_name>.heroku.com
+# heroku config:add TRUDY_QUEUE=<queue-name>
class Trudy < Sinatra::Base
AMBIENT_FREQUENCY = 2
PING_SECONDS = 30
- QUEUE_NAME = 'messages'
+ QUEUE_NAME = ENV['TRUDY_QUEUE']
def client
unless @client

0 comments on commit 81d3c08

Please sign in to comment.