Update deploy.sh
This commit is contained in:
parent
c2cafe2856
commit
178f0ee86e
1 changed files with 5 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue