From fe6e95224d62e2ee469c4896b6c3cbbd123d8fd2 Mon Sep 17 00:00:00 2001 From: Marigold Date: Mon, 9 Oct 2023 13:24:13 +0200 Subject: [PATCH] :bug: add missing asset envs --- ops/buildkite/build-code | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ops/buildkite/build-code b/ops/buildkite/build-code index 269ab4e3164..f17bfd06d85 100755 --- a/ops/buildkite/build-code +++ b/ops/buildkite/build-code @@ -53,6 +53,16 @@ update_env() { sed -i "s|^WORDPRESS_DB_HOST=.*$|WORDPRESS_DB_HOST=owid-live-db|" owid-grapher/.env # replace wordpress directory sed -i "s|^WORDPRESS_DIR=.*$|WORDPRESS_DIR=/home/owid/wordpress|" owid-grapher/.env + # redirect assets + if ! grep -q "^BAKED_GRAPHER_EXPORTS_BASE_URL=" owid-grapher/.env; then + echo "BAKED_GRAPHER_EXPORTS_BASE_URL=https://assets.ourworldindata.org/grapher/exports" >> owid-grapher/.env + fi + if ! grep -q "^BAKED_SITE_EXPORTS_BASE_URL=" owid-grapher/.env; then + echo "BAKED_SITE_EXPORTS_BASE_URL=https://assets.ourworldindata.org/exports" >> owid-grapher/.env + fi + if ! grep -q "^BAKED_WORDPRESS_UPLOADS_URL=" owid-grapher/.env; then + echo "BAKED_WORDPRESS_UPLOADS_URL=https://assets.ourworldindata.org/uploads" >> owid-grapher/.env + fi }