Skip to content

Commit

Permalink
Try db:migrate instead of db:schema:load
Browse files Browse the repository at this point in the history
  • Loading branch information
Splines committed Aug 1, 2024
1 parent b632cb3 commit 395f663
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions initialize.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ check_for_preseeds() {
done
bundle exec rails db:restore pattern=$(echo $latest | rev | cut -d "/" -f1 | rev | cut -d "_" -f1)
bundle exec rails db:create:interactions
bundle exec rails db:schema:load
bundle exec rails db:migrate
fi

# Files (uploads) preseed
Expand Down Expand Up @@ -49,8 +49,8 @@ if ! [ -f /completed_initial_run ]; then
bundle exec rails db:create:interactions
bundle exec rails db:create

echo running: bundle exec rails db:schema:load
bundle exec rails db:schema:load
echo running: bundle exec rails db:migrate
bundle exec rails db:migrate

echo Waiting for SOLR to come online
wait-for-it ${SOLR_HOST}:${SOLR_PORT} -t 30 || exit 1
Expand Down

0 comments on commit 395f663

Please sign in to comment.