mirror of
https://github.com/hakanensari/frankfurter.git
synced 2024-11-25 12:32:30 +01:00
Load rates when deploying
This commit is contained in:
parent
12efdf8a1b
commit
0471499846
@ -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(' ')}"
|
||||
|
Loading…
Reference in New Issue
Block a user