diff --git a/deploy.sh b/deploy.sh index ebd83de..fd77604 100644 --- a/deploy.sh +++ b/deploy.sh @@ -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 \ No newline at end of file +rm $DOCUMENT_ROOT/maintenance.file