Skip to content

Commit

Permalink
Use bundle exec
Browse files Browse the repository at this point in the history
  • Loading branch information
Splines committed Aug 1, 2024
1 parent bf6ded0 commit b632cb3
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 @@ -11,9 +11,9 @@ check_for_preseeds() {
for file in db/backups/docker_development/*.sql; do
[[ $file -nt $latest ]] && latest=$file
done
rails db:restore pattern=$(echo $latest | rev | cut -d "/" -f1 | rev | cut -d "_" -f1)
rails db:create:interactions
rails db:schema:load
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
fi

# Files (uploads) preseed
Expand Down

0 comments on commit b632cb3

Please sign in to comment.