From 0471499846cf0cd58fc1f38d74a48383e535febe Mon Sep 17 00:00:00 2001 From: Hakan Ensari Date: Mon, 11 Apr 2016 14:18:39 +0100 Subject: [PATCH] Load rates when deploying --- deploy/before_restart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deploy/before_restart b/deploy/before_restart index bd2cbc5..5320730 100755 --- a/deploy/before_restart +++ b/deploy/before_restart @@ -11,6 +11,6 @@ run 'whenever --update-crontab' tasks = [] num_migrations = `git diff #{oldrev} #{newrev} --diff-filter=A --name-only -z db/migrate`.split("\0").size tasks << 'db:migrate' if num_migrations > 0 -tasks << 'rates:update' +tasks << 'rates:load' -run "foreman run bundle exec rake #{tasks.join(" ")}" if tasks.any? +run "foreman run bundle exec rake #{tasks.join(' ')}"