Skip to content

Commit

Permalink
🐛 add missing asset envs
Browse files Browse the repository at this point in the history
  • Loading branch information
Marigold committed Oct 9, 2023
1 parent 0952829 commit fe6e952
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions ops/buildkite/build-code
Original file line number Diff line number Diff line change
Expand Up @@ -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
}


Expand Down

0 comments on commit fe6e952

Please sign in to comment.