Update deploy.sh

This commit is contained in:
Koen 2023-09-12 07:20:57 +00:00
parent c2cafe2856
commit 178f0ee86e

View file

@ -7,9 +7,10 @@ touch $DOCUMENT_ROOT/maintenance.file
# Swap over the content
echo "Deploying content..."
cp peertube.png $DOCUMENT_ROOT/
cp PeerTubeConfig.json $DOCUMENT_ROOT/
cp PeerTubeScript.js $DOCUMENT_ROOT/
mkdir -p $DOCUMENT_ROOT/PeerTube
cp peertube.png $DOCUMENT_ROOT/PeerTube
cp PeerTubeConfig.json $DOCUMENT_ROOT/PeerTube
cp PeerTubeScript.js $DOCUMENT_ROOT/PeerTube
# Notify Cloudflare to wipe the CDN cache
echo "Purging Cloudflare cache..."
@ -20,4 +21,4 @@ curl -X POST "https://api.cloudflare.com/client/v4/zones/$CLOUDFLARE_ZONE_ID/pur
# Take site back online
echo "Bringing site back online..."
rm $DOCUMENT_ROOT/maintenance.file
rm $DOCUMENT_ROOT/maintenance.file