mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
purge react root from CDN on deploy
This commit is contained in:
parent
7030d7a98c
commit
859dfd9cdd
1 changed files with 3 additions and 3 deletions
|
|
@ -17,8 +17,8 @@ sshpass -p $FTP_PASSWORD scp -o StrictHostKeyChecking=no -r /home/travis/build/c
|
|||
sshpass -p $FTP_PASSWORD ssh -o StrictHostKeyChecking=no $FTP_USER@$FTP_HOST 'sudo systemctl start filterlists.web.service'
|
||||
|
||||
#purge CDN
|
||||
#curl -X DELETE "https://api.cloudflare.com/client/v4/zones/$CF_FILTERLISTS_ZONE/purge_cache" -H "X-Auth-Email: $CF_EMAIL" -H "X-Auth-Key: $CF_GLOBAL_API_KEY" -H "Content-Type: application/json" --data '{"purge_everything":true}'
|
||||
#sleep 5
|
||||
curl -X DELETE "https://api.cloudflare.com/client/v4/zones/$CF_FILTERLISTS_ZONE/purge_cache" -H "X-Auth-Email: $CF_EMAIL" -H "X-Auth-Key: $CF_GLOBAL_API_KEY" -H "Content-Type: application/json" --data '{"files":["https://filterlists.com/"]}'
|
||||
sleep 5
|
||||
|
||||
#prime app
|
||||
#curl https://filterlists.com/api/v1/lists
|
||||
curl https://filterlists.com/
|
||||
Loading…
Reference in a new issue