Update deploy.sh
This commit is contained in:
parent
178f0ee86e
commit
0e2bdc5671
1 changed files with 2 additions and 2 deletions
|
@ -13,11 +13,11 @@ cp PeerTubeConfig.json $DOCUMENT_ROOT/PeerTube
|
||||||
cp PeerTubeScript.js $DOCUMENT_ROOT/PeerTube
|
cp PeerTubeScript.js $DOCUMENT_ROOT/PeerTube
|
||||||
|
|
||||||
# Notify Cloudflare to wipe the CDN cache
|
# Notify Cloudflare to wipe the CDN cache
|
||||||
echo "Purging Cloudflare cache..."
|
echo "Purging Cloudflare cache for zone $CLOUDFLARE_ZONE_ID..."
|
||||||
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/$CLOUDFLARE_ZONE_ID/purge_cache" \
|
||||||
-H "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
|
-H "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
|
||||||
-H "Content-Type: application/json" \
|
-H "Content-Type: application/json" \
|
||||||
--data '{"purge_everything":true}'
|
--data '{"files":["https://plugins.grayjay.app/PeerTube/peertube.png", "https://plugins.grayjay.app/PeerTube/PeerTubeConfig.json", "https://plugins.grayjay.app/PeerTube/PeerTubeScript.js"]}'
|
||||||
|
|
||||||
# Take site back online
|
# Take site back online
|
||||||
echo "Bringing site back online..."
|
echo "Bringing site back online..."
|
||||||
|
|
Loading…
Reference in a new issue