Skip to content

Commit

Permalink
:fix: clone owid-content during "make up" if missing
Browse files Browse the repository at this point in the history
The grapher repo cannot build explorers without `owid-content`, so make
sure it's there.
  • Loading branch information
larsyencken committed Jan 19, 2024
1 parent 7c0f25d commit 6012137
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ help:

up: export DEBUG = 'knex:query'

up: require create-if-missing.env tmp-downloads/owid_metadata.sql.gz
up: require create-if-missing.env ../owid-content tmp-downloads/owid_metadata.sql.gz
@make validate.env
@make check-port-3306
@echo '==> Building grapher'
Expand Down Expand Up @@ -98,7 +98,7 @@ up.devcontainer: create-if-missing.env.devcontainer tmp-downloads/owid_metadata.

up.full: export DEBUG = 'knex:query'

up.full: require create-if-missing.env.full wordpress/.env tmp-downloads/owid_metadata.sql.gz tmp-downloads/live_wordpress.sql.gz wordpress/web/app/uploads/2022
up.full: require create-if-missing.env.full ../owid-content wordpress/.env tmp-downloads/owid_metadata.sql.gz tmp-downloads/live_wordpress.sql.gz wordpress/web/app/uploads/2022
@make validate.env.full
@make check-port-3306

Expand Down Expand Up @@ -331,3 +331,7 @@ svgtest: ../owid-grapher-svgs

@# summarize differences
cd ../owid-grapher-svgs && git diff --stat

../owid-content:
@echo '==> Cloning owid-content to ../owid-content'
cd .. && git clone [email protected]:owid/owid-content

0 comments on commit 6012137

Please sign in to comment.