-
Notifications
You must be signed in to change notification settings - Fork 21
/
cc-dev-deploy.sh
executable file
·31 lines (24 loc) · 1.1 KB
/
cc-dev-deploy.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/usr/bin/env bash
rm -rf ./_metadata-schema
rm -rf ./humancellatlas.github.io
git clone https://github.com/HumanCellAtlas/metadata-schema.git _metadata-schema
git clone https://github.com/HumanCellAtlas/humancellatlas.github.io
n 14.16.0
npm ci
gatsby clean
export GATSBY_EXPLORE_URL=https://explore.data.humancellatlas.dev.clevercanary.com/
export GATSBY_PORTAL_URL=https://data.humancellatlas.dev.clevercanary.com/
export GATSBY_FILE_SUMMARY_API_URL=https://service.dev.singlecell.gi.ucsc.edu/index/summary
export GATSBY_TERM_FACETS_API_URL=https://service.dev.singlecell.gi.ucsc.edu/index/projects
export GATSBY_SYSTEM_HEALTH_CHECK_API_URL=https://service.dev.singlecell.gi.ucsc.edu/health/progress
export GATSBY_GTM_ID=GTM-M2J5NTJ
export GATSBY_GTM_AUTH=CzDpc0__fhyqfREDehPK8Q
export GATSBY_ENV_NAME=env-83
export GATSBY_ENV=LOCAL
export GATSBY_DEFAULT_CATALOG=dcp2
export GATSBY_ATLAS=hca
gatsby build
export BUCKET=s3://wb8-portal/
export SRCDIR=public/
aws s3 sync $SRCDIR $BUCKET --delete --profile excira
aws cloudfront create-invalidation --distribution-id E2SLGSHX4H0LO7 --paths "/*" --profile excira