From 7640b84956b215f7bd4469341b96c143f7764961 Mon Sep 17 00:00:00 2001 From: Mark Breedlove Date: Wed, 8 Oct 2014 20:38:51 -0400 Subject: [PATCH] Fix api build rake tasks for new installation The order of rake tasks was wrong in the `api' role's build_api.sh. Tasks that required the existence of the database were being run before the database was being created in a brand-new installation. --- ansible/roles/api/files/build_api.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ansible/roles/api/files/build_api.sh b/ansible/roles/api/files/build_api.sh index 4e11737..6cb0485 100644 --- a/ansible/roles/api/files/build_api.sh +++ b/ansible/roles/api/files/build_api.sh @@ -38,7 +38,7 @@ done # loadbalancer's rotation for the duration of this script. # - mb cd /srv/www/api -bundle exec rake jobs:clear \ - && bundle exec rake contentqa:delete_reports \ - && bundle exec rake tmp:clear \ - && bundle exec rake db:migrate +bundle exec rake db:migrate \ + && bundle exec rake tmp:clear \ + && bundle exec rake jobs:clear \ + && bundle exec rake contentqa:delete_reports