Skip to content

Instantly share code, notes, and snippets.

@kraken-chris
Last active December 9, 2022 19:53
Show Gist options
  • Save kraken-chris/e4049237645489578c9aef68d36f75cd to your computer and use it in GitHub Desktop.
Save kraken-chris/e4049237645489578c9aef68d36f75cd to your computer and use it in GitHub Desktop.
Update base urls
# Update "local_url" with the value of WARDEN_ENV_NAME
SET @localUrl = "{{local_url}}";
SET @scope = 0; #update scope if needed for each website/store
UPDATE
core_config_data
SET
`value` = concat("https://app.", @localUrl, ".test/")
WHERE
path LIKE "web/%/base_url"
AND scope_id = @scope;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment