Skip to content

Commit

Permalink
Use rsync to copy so that we can keep the drupal site where it was, i…
Browse files Browse the repository at this point in the history
…nside the project directory.
  • Loading branch information
greg-1-anderson committed Sep 26, 2024
1 parent f295a0c commit 4bee8ce
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .circleci/scripts/setup-drupal-repo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ if [ "$TERMINUS_BASE_ENV" = "dev" ]; then
fi

# Bring the code down to Circle so that modules can be added via composer.
git clone $(terminus connection:info ${TERMINUS_SITE}.dev --field=git_url) --branch $TERMINUS_BASE_ENV "$HOME/drupal-site"
cd "$HOME/drupal-site"
git clone $(terminus connection:info ${TERMINUS_SITE}.dev --field=git_url) --branch $TERMINUS_BASE_ENV drupal-site
cd drupal-site

git checkout -b $TERMINUS_ENV

Expand All @@ -27,7 +27,7 @@ composer -- require "drupal/views_custom_cache_tag:1.x-dev"

# Add this project, but not via Composer
mkdir -p web/modules/circle/pantheon_advanced_page_cache
cp -R "$PROJECT_DIR/"* web/modules/circle/pantheon_advanced_page_cache
rsync -av --exclude='vendor' --exclude='drupal-site' "$PROJECT_DIR/"* web/modules/circle/pantheon_advanced_page_cache

# Make a git commit
git add .
Expand Down

0 comments on commit 4bee8ce

Please sign in to comment.