Skip to content

Commit

Permalink
#11 Add debugging syntax for import section in syncdb.
Browse files Browse the repository at this point in the history
  • Loading branch information
hkirsman committed Mar 4, 2024
1 parent fa912fe commit 15380be
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions dist/.ddev/wunderio/core/tooling-syncdb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,10 @@ prod_ssh_user=$(echo "$prod_alias" | ddev yq '.\"@self.prod\".user' )
prod_ssh_options=$(echo "$prod_alias" | ddev yq '.\"@self.prod\".ssh.options' )
prod_ssh_host=$(echo "$prod_alias" | ddev yq '.\"@self.prod\".host' )

echo "Dumping production database to $sql_file."
set -x
ssh "$prod_ssh_user@$prod_ssh_host" "$prod_ssh_options" "drush sql-dump --structure-tables-list=cache,cache_*,history,search_*,sessions" > "$sql_file"
echo "Importing production database."
ddev import-db --file="$sql_file"
echo "Removing $sql_file."
rm "$sql_file"
{ set +x; } 2>/dev/null

display_status_message "Sync complete!"

0 comments on commit 15380be

Please sign in to comment.