exciting-io / slack-bot-server

A server for running multiple slack bots -- useful for building integrations
MIT License
47 stars 13 forks source link

Redis::CannotConnectError: Error connecting to Redis on 127.0.0.1:6379 (Errno::ECONNREFUSED) #21

Closed anjain closed 8 years ago

anjain commented 8 years ago

queue = SlackBotServer::RedisQueue.new(redis: Redis.new) slack_remote = SlackBotServer::RemoteControl.new(queue: queue) slack_remote.add_bot('user-accounts-slack-api-token')

when i try to add_bot then above error comes on heroku but it is working fine in local please help

lazyatom commented 8 years ago

It's likely that you'll need to specifically configure your Redis connection via the environment variables (i.e. REDIS_URL) that Heroku's Redis integration gives you:

queue = SlackBotServer::RedisQueue.new(redis: Redis.new(url: ENV['REDIS_URL']))
anjain commented 8 years ago

Thanks man :)