From 886958270f526c556587dffb1d98179c6d81f782 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Greg=20Kar=C3=A9kinian?= Date: Mon, 25 Feb 2019 18:29:18 +0100 Subject: [PATCH] Set REDIS_URL for botka It was using the same Redis key to write its brain as hal8000 (`hubot:storage`), causing scores to not be persisted to Redis. Right now botka is only saving the online users to the database. It looks like this was only enabled recently, as the last saved score was from Feb 8 Fixes #14 --- site-cookbooks/kosmos-hubot/recipes/botka_freenode.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/site-cookbooks/kosmos-hubot/recipes/botka_freenode.rb b/site-cookbooks/kosmos-hubot/recipes/botka_freenode.rb index e9b4f6b..3eb9433 100644 --- a/site-cookbooks/kosmos-hubot/recipes/botka_freenode.rb +++ b/site-cookbooks/kosmos-hubot/recipes/botka_freenode.rb @@ -72,7 +72,8 @@ application botka_freenode_path do "GCM_API_KEY" => botka_freenode_data_bag_item['gcm_api_key'], "VAPID_SUBJECT" => "https://kosmos.org", "VAPID_PUBLIC_KEY" => botka_freenode_data_bag_item['vapid_public_key'], - "VAPID_PRIVATE_KEY" => botka_freenode_data_bag_item['vapid_private_key'] + "VAPID_PRIVATE_KEY" => botka_freenode_data_bag_item['vapid_private_key'], + "REDIS_URL" => "redis://localhost:6379/botka" } ) notifies :run, "execute[systemctl daemon-reload]", :delayed