Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .vortex/docs/.utils/variables/variables.excluded.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ IFS
PATH
SCRIPT_DIR
SRC_TMPDIR
TARGET_ENV_REMAP
TEST_PACKAGE_TOKEN
VORTEX_DOCTOR_CHECK_PREFLIGHT
VORTEX_PROVISION_LOG_ACTIVE
Expand Down
1 change: 0 additions & 1 deletion .vortex/docs/content/development/variables.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,6 @@ The list below is automatically generated with [Shellvar](https://github.com/ale
| <Anchor id="vortex_task_custom_lagoon_ssh_fingerprint" />`VORTEX_TASK_CUSTOM_LAGOON_SSH_FINGERPRINT` | SSH key fingerprint used to connect to a remote. | `UNDEFINED` | `.vortex/tooling/src/vortex-task-custom-lagoon` |
| <Anchor id="vortex_task_platform" />`VORTEX_TASK_PLATFORM` | Hosting platform to run the operation for. | `${VORTEX_PLATFORM}` | `.vortex/tooling/src/vortex-task` |
| <Anchor id="vortex_task_purge_cache_acquia_app_name" />`VORTEX_TASK_PURGE_CACHE_ACQUIA_APP_NAME` | Application name. Used to discover UUID. | `${VORTEX_ACQUIA_APP_NAME}` | `.vortex/tooling/src/vortex-task-purge-cache-acquia` |
| <Anchor id="vortex_task_purge_cache_acquia_domains_file" />`VORTEX_TASK_PURGE_CACHE_ACQUIA_DOMAINS_FILE` | File with a list of domains that should be purged. | `domains.txt` | `.vortex/tooling/src/vortex-task-purge-cache-acquia` |
| <Anchor id="vortex_task_purge_cache_acquia_env" />`VORTEX_TASK_PURGE_CACHE_ACQUIA_ENV` | An environment name to purge cache for. | `UNDEFINED` | `.vortex/tooling/src/vortex-task-purge-cache-acquia` |
| <Anchor id="vortex_task_purge_cache_acquia_key" />`VORTEX_TASK_PURGE_CACHE_ACQUIA_KEY` | Acquia Cloud API key. | `${VORTEX_ACQUIA_KEY}` | `.vortex/tooling/src/vortex-task-purge-cache-acquia` |
| <Anchor id="vortex_task_purge_cache_acquia_secret" />`VORTEX_TASK_PURGE_CACHE_ACQUIA_SECRET` | Acquia Cloud API secret. | `${VORTEX_ACQUIA_SECRET}` | `.vortex/tooling/src/vortex-task-purge-cache-acquia` |
Expand Down
17 changes: 6 additions & 11 deletions .vortex/docs/content/hosting/acquia.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -95,13 +95,11 @@ blank field in the Acquia UI counts as empty. `purge-cache.sh` and both copy
hooks require `VORTEX_ACQUIA_KEY` and `VORTEX_ACQUIA_SECRET`, so set both in
the Acquia UI before the first deployment.

`purge-cache.sh` purges the domains listed in `hooks/library/domains.txt`.
The installer writes your domain there as `$TARGET_ENV_REMAP.<domain>`. Add
a line for every other domain the site serves.

`$TARGET_ENV_REMAP` expands to `dev` on `dev`, `stage` on `test` and
`test2` on `test2`. On `prod`, the prefix and its dot are removed. Any
other environment, including on-demand ones, purges nothing.
`purge-cache.sh` purges every domain attached to the environment, on-demand
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Resolved
environments included. It reads the list from the Acquia Cloud API, so it
covers the Acquia domain and every custom domain or sub-domain. It skips
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Resolved
wildcard domains such as `*.example.com`. Each purge clears Varnish and the
Platform CDN when it's enabled.

`notify-deployment.sh` builds the notification URL from Acquia's
`AH_SITE_NAME` and `AH_REALM` variables:
Expand Down Expand Up @@ -217,10 +215,7 @@ default environments, so set them for a manual run:
(the database name).
- `copy-files`: `VORTEX_TASK_COPY_FILES_ACQUIA_SRC` and
`VORTEX_TASK_COPY_FILES_ACQUIA_DST`.
- `purge-cache`: `VORTEX_TASK_PURGE_CACHE_ACQUIA_ENV`, plus
`VORTEX_TASK_PURGE_CACHE_ACQUIA_DOMAINS_FILE` when the domain list isn't
`domains.txt` in the current directory (the hook sets it to
`hooks/library/domains.txt`).
- `purge-cache`: `VORTEX_TASK_PURGE_CACHE_ACQUIA_ENV`.

For example, to copy the production database into `dev`, run the following
command from the project root:
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ export VORTEX_ACQUIA_KEY="${VORTEX_ACQUIA_KEY:?Missing required value.}"
export VORTEX_ACQUIA_SECRET="${VORTEX_ACQUIA_SECRET:?Missing required value.}"
export VORTEX_ACQUIA_APP_NAME="${VORTEX_ACQUIA_APP_NAME:-${site}}"
export VORTEX_TASK_PURGE_CACHE_ACQUIA_ENV="${VORTEX_TASK_PURGE_CACHE_ACQUIA_ENV:-${target_env}}"
export VORTEX_TASK_PURGE_CACHE_ACQUIA_DOMAINS_FILE="${VORTEX_TASK_PURGE_CACHE_ACQUIA_DOMAINS_FILE:-"/var/www/html/${site}.${target_env}/hooks/library/domains.txt"}"

pushd "/var/www/html/${site}.${target_env}" >/dev/null || exit 1

Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ export VORTEX_ACQUIA_KEY="${VORTEX_ACQUIA_KEY:?Missing required value.}"
export VORTEX_ACQUIA_SECRET="${VORTEX_ACQUIA_SECRET:?Missing required value.}"
export VORTEX_ACQUIA_APP_NAME="${VORTEX_ACQUIA_APP_NAME:-${site}}"
export VORTEX_TASK_PURGE_CACHE_ACQUIA_ENV="${VORTEX_TASK_PURGE_CACHE_ACQUIA_ENV:-${target_env}}"
export VORTEX_TASK_PURGE_CACHE_ACQUIA_DOMAINS_FILE="${VORTEX_TASK_PURGE_CACHE_ACQUIA_DOMAINS_FILE:-"/var/www/html/${site}.${target_env}/hooks/library/domains.txt"}"

pushd "/var/www/html/${site}.${target_env}" >/dev/null || exit 1

Expand Down
Loading
Loading