Skip to content

Commit ab42f96

Browse files
committed
Purge cache after deploy
1 parent 558d904 commit ab42f96

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

deploy-prod.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,11 @@ pem=Back4App_Production.pem
99
branch=master
1010
git='~/bin/git-parse-dashboard'
1111
ssh -t -i $b4a_certs_path/$pem $user@$host "sudo su back4app -c '. ~/.nvm/nvm.sh && nvm use 9 && cd ~/scm/parse-dashboard && $git reset --hard && $git remote update && $git checkout $branch && $git merge origin/$branch && yarn install --production=false && npm run prepublish && npm run build'"
12+
curl -X DELETE "https://api.cloudflare.com/client/v4/zones/69ace06909c83213745231d2c6d0fd27/purge_cache" -H "X-Auth-Email: [email protected]" -H "X-Auth-Key: aa41038d78651ae07e2f49507fee32eac1e4c" -H "Content-Type: application/json" --data '{"files":[
13+
"https://parse-dashboard.back4app.com/dashboard.bundle.js",
14+
"https://parse-dashboard.back4app.com/PIG.bundle.js",
15+
"https://parse-dashboard.back4app.com/login.bundle.js",
16+
"https://parse-dashboard.back4app.com/quickstart.bundle.js",
17+
"https://parse-dashboard.back4app.com/sprites.svg"
18+
]}'
1219
#ssh -t aws_B4ANFS_Homolog "sudo su back4app -c '. ~/.nvm/nvm.sh && nvm use 9 && cd ~/scm/back4app-site && yarn install && npm run build && pm2 reload site'"

0 commit comments

Comments
 (0)