From d2c075cc938cd9bb0d172ba68a3db287c1f9e515 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Wed, 5 Jun 2019 19:28:31 +0200 Subject: [PATCH] Add new settings on servers with the `db` role This task adds records to the database, so the role `db` is more appropriate. --- config/deploy.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/deploy.rb b/config/deploy.rb index eb48fb135..602e86ae1 100644 --- a/config/deploy.rb +++ b/config/deploy.rb @@ -77,7 +77,7 @@ task :refresh_sitemap do end task :add_new_settings do - on roles(:app) do + on roles(:db) do within release_path do with rails_env: fetch(:rails_env) do execute :rake, "settings:add_new_settings"