diff --git a/receivers/electron/deploy.sh b/receivers/electron/deploy.sh index de404f0..df46837 100644 --- a/receivers/electron/deploy.sh +++ b/receivers/electron/deploy.sh @@ -20,11 +20,13 @@ cp -r dist $DOCUMENT_ROOT/fcastreceiver/ # 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}' +sleep 30 + # Take site back online echo "Bringing site back online..." -rm $DOCUMENT_ROOT/maintenance.file \ No newline at end of file +rm $DOCUMENT_ROOT/maintenance.file