Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

restore proofs earlier to have a chance to restore before go-live #857

Open
wants to merge 3 commits into
base: dev
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ ${DATA_VERSION_FILE}:
show-env:
env | egrep 'STORAGE|BUCKET'

deploy-local: config show-env stats-background elasticsearch-storage-pull elasticsearch-restore elasticsearch docker-check up backup-dir-clean local-test-api
deploy-local: config show-env stats-background proofs-restore-async elasticsearch-storage-pull elasticsearch-restore elasticsearch docker-check up backup-dir-clean local-test-api

frontend-test:
${DC} -f ${DC_FILE}-test.yml run ui-test yarn install
Expand Down Expand Up @@ -691,6 +691,9 @@ proofs-restore: ${PROOFS}
STORAGE_ACCESS_KEY=${TOOLS_STORAGE_ACCESS_KEY} STORAGE_SECRET_KEY=${TOOLS_STORAGE_SECRET_KEY};\
fi

proofs-restore-async:
@(make proofs-restore > .proofs-restore 2>&1 &);\

proofs-backup: ${PROOFS}
@if [ -n "${PROOFS_BUCKET}" ];then\
${MAKE} -C ${APP_PATH}/${GIT_TOOLS} storage-sync-push STORAGE_BUCKET=${PROOFS_BUCKET}/${GIT_BACKEND_BRANCH} DATA_DIR=${PROOFS} \
Expand Down