Skip to content
This repository has been archived by the owner on Oct 5, 2022. It is now read-only.

Commit

Permalink
Fix api build rake tasks for new installation
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Mark Breedlove committed Oct 9, 2014
1 parent c5ab96e commit 7640b84
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ansible/roles/api/files/build_api.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 7640b84

Please sign in to comment.