Skip to content

Commit

Permalink
Update Docker scripts
Browse files Browse the repository at this point in the history
Remove external requests on setup. Eventually this will be removed when
we remove external requests from core but for now ensure a fresh Docker
environment works.

Fixes #7823
  • Loading branch information
gbp committed Oct 19, 2023
1 parent 16f7446 commit 1eba108
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docker/setup
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,14 @@ else
error_msg 'skipped'
fi

notice_msg 'Removing external requests...'
if [ $RESET_DATA_FLAG -eq 1 ]; then
bin/rails runner 'InfoRequest.external.destroy_all'
success_msg 'done'
else
error_msg 'skipped'
fi

notice_msg 'Rebuilding Xapian index...'
if [ $RESET_DATA_FLAG -eq 1 ]; then
bundle exec script/destroy-and-rebuild-xapian-index > /dev/null
Expand Down

0 comments on commit 1eba108

Please sign in to comment.