Skip to content
Snippets Groups Projects
Commit a76631fb authored by Koen's avatar Koen
Browse files

Update deploy.sh

parent 1a7b49f5
No related branches found
No related tags found
No related merge requests found
......@@ -13,11 +13,11 @@ cp SoundcloudConfig.json $DOCUMENT_ROOT/Soundcloud
cp SoundcloudScript.js $DOCUMENT_ROOT/Soundcloud
# 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" \
-H "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
-H "Content-Type: application/json" \
--data '{"purge_everything":true}'
--data '{"files":["https://plugins.grayjay.app/Soundcloud/soundcloud.png", "https://plugins.grayjay.app/Soundcloud/SoundcloudConfig.json", "https://plugins.grayjay.app/Soundcloud/SoundcloudScript.js"]}'
# Take site back online
echo "Bringing site back online..."
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment