mirror of
https://gitlab.com/futo-org/fcast.git
synced 2025-06-24 21:25:23 +00:00
Update deploy.sh
This commit is contained in:
parent
7ee2c5ab71
commit
04a9ff4a4c
1 changed files with 2 additions and 2 deletions
|
@ -20,11 +20,11 @@ cp ./app/build/outputs/bundle/playstoreRelease/app-playstore-release.aab /var/ww
|
|||
|
||||
# Notify Cloudflare to wipe the CDN cache
|
||||
echo "Purging Cloudflare cache..."
|
||||
curl -X POST "https://api.cloudflare.com/client/v4/zones/$CLOUDFLARE_ZONE_ID/purge_cache" \
|
||||
curl -X POST "https://api.cloudflare.com/client/v4/zones/ff904f7348b9513064b23e852e328abb/purge_cache" \
|
||||
-H "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
|
||||
-H "Content-Type: application/json" \
|
||||
--data '{"purge_everything":true}'
|
||||
|
||||
# Take site back online
|
||||
echo "Bringing site back online..."
|
||||
rm $DOCUMENT_ROOT/maintenance.file
|
||||
rm $DOCUMENT_ROOT/maintenance.file
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue