kanopi / drupal-starter

A project starter for Drupal using Docksal, Composer, and CircleCI customized for Pantheon.
14 stars 10 forks source link

The config-capture command doesn't fully work when config is deleted #202

Open banoodle opened 2 months ago

banoodle commented 2 months ago

I just deleted some fields and config-capture only captured updated yamls but not the deleted ones.

thejimbirch commented 2 months ago

should delete your config folder before the rsync?

# Sync the files down.
echo -e "Sync the files down"
fin terminus rsync ${hostingsite}.${ENVIRONMENT}:files/private/config-capture-${var_date}/ ./config

# ADD THIS
# Delete the config folder.
rm -rf ./config

# Reset permissions on the sync'd files.
echo -e "Reset permissions on changed files"
find ./config/ -type f | xargs chmod 644

# Show the differences.
echo -e "Here are the differences:"
git status