Skip to content

Commit

Permalink
chore(make): remove deploy & stage targets
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelgerber committed Oct 17, 2023
1 parent f599d94 commit 245eb35
Showing 1 changed file with 0 additions and 34 deletions.
34 changes: 0 additions & 34 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,6 @@ help:
@echo ' make refresh.wp download a new wordpress snapshot and update MySQL'
@echo ' make refresh.full do a full MySQL update of both wordpress and grapher'
@echo
@echo ' OPS (staff-only)'
@echo ' make deploy Deploy your local site to production'
@echo ' make stage Deploy your local site to staging'
@echo

up: export DEBUG = 'knex:query'

Expand Down Expand Up @@ -219,36 +215,6 @@ wordpress/web/app/uploads/2022:
@echo '==> Downloading wordpress uploads'
./devTools/docker/download-wordpress-uploads.sh

deploy:
@echo '==> Starting from a clean slate...'
rm -rf itsJustJavascript

@echo '==> Building...'
yarn
yarn lerna run build
yarn run tsc -b

@echo '==> Deploying...'
yarn buildAndDeploySite live

stage:
@if [[ ! "$(STAGING)" ]]; then \
echo 'ERROR: must set the staging environment'; \
echo ' e.g. STAGING=halley make stage'; \
exit 1; \
fi
@echo '==> Preparing to deploy to $(STAGING)'
@echo '==> Starting from a clean slate...'
rm -rf itsJustJavascript

@echo '==> Building...'
yarn
yarn lerna run build
yarn run tsc -b

@echo '==> Deploying to $(STAGING)...'
yarn buildAndDeploySite $(STAGING)

test:
@echo '==> Linting'
yarn
Expand Down

0 comments on commit 245eb35

Please sign in to comment.