mirror of
https://gitlab.com/futo-org/fcast.git
synced 2025-06-24 21:25:23 +00:00
Merge branch 'master' of gitlab.futo.org:videostreaming/fcast
This commit is contained in:
commit
60ec776f94
3 changed files with 12 additions and 6 deletions
|
@ -20,11 +20,13 @@ cp ./app/build/outputs/bundle/playstoreRelease/app-playstore-release.aab /var/ww
|
||||||
|
|
||||||
# Notify Cloudflare to wipe the CDN cache
|
# Notify Cloudflare to wipe the CDN cache
|
||||||
echo "Purging Cloudflare 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 "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
|
||||||
-H "Content-Type: application/json" \
|
-H "Content-Type: application/json" \
|
||||||
--data '{"purge_everything":true}'
|
--data '{"purge_everything":true}'
|
||||||
|
|
||||||
|
sleep 30
|
||||||
|
|
||||||
# Take site back online
|
# Take site back online
|
||||||
echo "Bringing site back online..."
|
echo "Bringing site back online..."
|
||||||
rm $DOCUMENT_ROOT/maintenance.file
|
rm $DOCUMENT_ROOT/maintenance.file
|
|
@ -20,11 +20,13 @@ cp -r dist $DOCUMENT_ROOT/fcastreceiver/
|
||||||
|
|
||||||
# Notify Cloudflare to wipe the CDN cache
|
# Notify Cloudflare to wipe the CDN cache
|
||||||
echo "Purging Cloudflare 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 "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
|
||||||
-H "Content-Type: application/json" \
|
-H "Content-Type: application/json" \
|
||||||
--data '{"purge_everything":true}'
|
--data '{"purge_everything":true}'
|
||||||
|
|
||||||
|
sleep 30
|
||||||
|
|
||||||
# Take site back online
|
# Take site back online
|
||||||
echo "Bringing site back online..."
|
echo "Bringing site back online..."
|
||||||
rm $DOCUMENT_ROOT/maintenance.file
|
rm $DOCUMENT_ROOT/maintenance.file
|
|
@ -17,11 +17,13 @@ cp -r vendor $DOCUMENT_ROOT/
|
||||||
|
|
||||||
# Notify Cloudflare to wipe the CDN cache
|
# Notify Cloudflare to wipe the CDN cache
|
||||||
echo "Purging Cloudflare 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/018ad3b2bbb3bca14f2dd793ddb78de1/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 '{"purge_everything":true}'
|
||||||
|
|
||||||
|
sleep 30
|
||||||
|
|
||||||
# Take site back online
|
# Take site back online
|
||||||
echo "Bringing 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