Use the second Redis database for sockethub

This commit is contained in:
Greg Karékinian 2019-04-09 11:39:35 +02:00
parent 2d18e4cd45
commit ca118ca8f8

View File

@ -54,7 +54,9 @@ application path_to_deploy do
app_dir: path_to_deploy, app_dir: path_to_deploy,
entry: "/usr/bin/node /usr/bin/npm start", entry: "/usr/bin/node /usr/bin/npm start",
environment: { 'DEBUG' => '*', 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 :run, "execute[systemctl daemon-reload]", :delayed
notifies :restart, "service[sockethub_nodejs]", :delayed notifies :restart, "service[sockethub_nodejs]", :delayed