 
   rabbit = connectRabbit(process.env.AMQP_URL || "amqp://guest:guest@localhost")
   rabbit.on "ready", ->
-    rabbit.queue "faye", { passive: true, durable: true }, (queue) ->
+    rabbit.queue "faye", { passive: false, durable: true, noDeclare: false, autoDelete: false }, (queue) ->
       queue.bind("#")
       queue.subscribe { ack: false }, (message, headers, deliveryInfo) ->
         fayeClient.publish(message.channel, message.data)


# Read the environment variable
global.app_env = process.env.NODE_ENV || "development"
global.redisExpire = 86400

# Load all dependent libraries

  return client

exports.run = ->
  console.log "Booting node.js faye [#{ (process.env.FAYE_ENV || "development") }]"

  global.mongodb = connectMongoDB(process.env.MONGO_URL || "mongo://127.0.0.1:27017/cloudsdale")
  global.fayeServer = startFaye(process.env.FAYE_URL || "ws://0.0.0.0:8282/push")
