From ca118ca8f882d6901bcf55f065f8af713d716de1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Greg=20Kar=C3=A9kinian?= Date: Tue, 9 Apr 2019 11:39:35 +0200 Subject: [PATCH] Use the second Redis database for sockethub --- site-cookbooks/sockethub/recipes/default.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/site-cookbooks/sockethub/recipes/default.rb b/site-cookbooks/sockethub/recipes/default.rb index 201a803..30e8dcb 100644 --- a/site-cookbooks/sockethub/recipes/default.rb +++ b/site-cookbooks/sockethub/recipes/default.rb @@ -54,7 +54,9 @@ application path_to_deploy do app_dir: path_to_deploy, entry: "/usr/bin/node /usr/bin/npm start", environment: { 'DEBUG' => '*', - 'PORT' => node['sockethub']['port'] } + 'PORT' => node['sockethub']['port'], + # Use the second database (index starts at 0) + 'REDIS_URL' => "redis://localhost:6379/1" } ) notifies :run, "execute[systemctl daemon-reload]", :delayed notifies :restart, "service[sockethub_nodejs]", :delayed