Skip to content
Snippets Groups Projects
Commit 3247ab47 authored by Koen's avatar Koen
Browse files

Update deploy.sh

parent 17c9c378
No related branches found
No related tags found
No related merge requests found
...@@ -7,9 +7,10 @@ touch $DOCUMENT_ROOT/maintenance.file ...@@ -7,9 +7,10 @@ touch $DOCUMENT_ROOT/maintenance.file
# Swap over the content # Swap over the content
echo "Deploying content..." echo "Deploying content..."
cp twitch.png $DOCUMENT_ROOT/ mkdir -p Twitch
cp TwitchConfig.json $DOCUMENT_ROOT/ cp twitch.png $DOCUMENT_ROOT/Twitch
cp TwitchScript.js $DOCUMENT_ROOT/ cp TwitchConfig.json $DOCUMENT_ROOT/Twitch
cp TwitchScript.js $DOCUMENT_ROOT/Twitch
# Notify Cloudflare to wipe the CDN cache # Notify Cloudflare to wipe the CDN cache
echo "Purging Cloudflare cache..." echo "Purging Cloudflare cache..."
...@@ -20,4 +21,4 @@ curl -X POST "https://api.cloudflare.com/client/v4/zones/$CLOUDFLARE_ZONE_ID/pur ...@@ -20,4 +21,4 @@ curl -X POST "https://api.cloudflare.com/client/v4/zones/$CLOUDFLARE_ZONE_ID/pur
# 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
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment