Skip to content

Commit 34b3814

Browse files
[other] use usw2 for s3 (#1124)
1 parent 58bc816 commit 34b3814

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

deployment/deploy-qa.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@ NC='\033[0m'
1818
make release
1919

2020
echo -en "${GREEN}Pushing to builds ...${NC}\n"
21-
aws s3 cp --content-type="text/javascript" --content-encoding="gzip" dist/build.min.js.gz s3://branch-builds/web-sdk/branch-latest.min.js
22-
aws s3 cp --content-type="text/javascript" dist/build.js s3://branch-builds/web-sdk/branch.js
21+
aws s3 cp --content-type="text/javascript" --content-encoding="gzip" dist/build.min.js.gz s3://branch-builds-usw2/web-sdk/branch-latest.min.js
22+
aws s3 cp --content-type="text/javascript" dist/build.js s3://branch-builds-usw2/web-sdk/branch.js
2323

2424
# External services app - ID: 436637608899006753
2525
./deployment/build-example-html.sh "key_live_plqOidX7fW71Gzt0LdCThkemDEjCbTgx" "https://api.stage.branch.io" "https://cdn.branch.io/branch-staging-latest.min.js"
26-
aws s3 cp example.html s3://branch-cdn/example-staging.html
26+
aws s3 cp example.html s3://branch-cdn-usw2/example-staging.html
2727

2828
echo -en "${GREEN}Pushing to CDN ...${NC}\n"
29-
aws s3 cp --content-type="text/javascript" --content-encoding="gzip" dist/build.min.js.gz s3://branch-cdn/branch-staging-latest.min.js --cache-control "max-age=300"
29+
aws s3 cp --content-type="text/javascript" --content-encoding="gzip" dist/build.min.js.gz s3://branch-cdn-usw2/branch-staging-latest.min.js --cache-control "max-age=300"
3030

3131
echo -en "Invalidating cloudfront distribution for staging ...\n"
3232
aws configure set preview.cloudfront true

deployment/release-s3.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ make release
1212

1313
# Engagement Pro Production Testing App - ID: 1364963849844839205
1414
./deployment/build-example-html.sh "key_live_gAbR03mCEte9DLh6L9GFApebvyg4mMDw" "https://api2.branch.io" "https://cdn.branch.io/branch-latest.min.js"
15-
aws s3 cp example.html s3://branch-builds/example.html
16-
aws s3 cp example.html s3://branch-cdn/example.html
15+
aws s3 cp example.html s3://branch-builds-usw2/example.html
16+
aws s3 cp example.html s3://branch-cdn-usw2/example.html
1717

18-
aws s3 cp --content-type="text/javascript" --content-encoding="gzip" dist/build.js s3://branch-cdn/branch-latest.js --cache-control "max-age=300"
19-
aws s3 cp --content-type="text/javascript" --content-encoding="gzip" dist/build.min.js.gz s3://branch-cdn/branch-$VERSION.min.js --cache-control "max-age=300"
20-
aws s3 cp --content-type="text/javascript" --content-encoding="gzip" dist/build.min.js.gz s3://branch-cdn/branch-latest.min.js --cache-control "max-age=300"
18+
aws s3 cp --content-type="text/javascript" --content-encoding="gzip" dist/build.js s3://branch-cdn-usw2/branch-latest.js --cache-control "max-age=300"
19+
aws s3 cp --content-type="text/javascript" --content-encoding="gzip" dist/build.min.js.gz s3://branch-cdn-usw2/branch-$VERSION.min.js --cache-control "max-age=300"
20+
aws s3 cp --content-type="text/javascript" --content-encoding="gzip" dist/build.min.js.gz s3://branch-cdn-usw2/branch-latest.min.js --cache-control "max-age=300"
2121

2222
echo -en "Invalidating cloudfront distribution...\n"
2323
aws configure set preview.cloudfront true
@@ -29,4 +29,4 @@ echo
2929
read -p "Is https://cdn.branch.io/example.html using the right version number $VERSION?" -n 1 -r
3030
echo
3131
read -p "Is https://www.npmjs.com/package/branch-sdk using the right version number $VERSION?" -n 1 -r
32-
echo
32+
echo

examples/example.template.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ <h4>Response</h4>
461461
"margin": 5,
462462
"width": 1000,
463463
"image_format": "png",
464-
"center_logo_url": "https://branch-assets.s3.us-west-1.amazonaws.com/branch-badge-dark.svg",
464+
"center_logo_url": "https://branch-assets-usw2.s3.us-west-2.amazonaws.com/branch-badge-dark.svg",
465465
};
466466
const req = {
467467
...linkData,

0 commit comments

Comments
 (0)