diff --git a/scripts/cron b/scripts/cron index 6c7727471..2bf203a75 100644 --- a/scripts/cron +++ b/scripts/cron @@ -1,2 +1,2 @@ # FilterLists Capture Snapshots -*/3 * * * * nice -n 19 /usr/bin/flock -n /tmp/filterlistsagent.lockfile /var/www/api.filterlists/FilterLists.Agent > /dev/null 2>&1 \ No newline at end of file +*/1 * * * * nice -n 19 /usr/bin/flock -n /tmp/filterlistsagent.lockfile /var/www/api.filterlists/FilterLists.Agent > /dev/null 2>&1 \ No newline at end of file diff --git a/scripts/deploy.sh b/scripts/deploy.sh index 21ef60ddc..54e3b40c8 100755 --- a/scripts/deploy.sh +++ b/scripts/deploy.sh @@ -22,4 +22,7 @@ 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 restart 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}' \ No newline at end of file +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}' + +#prime app +curl https://beta.filterlists.com/ \ No newline at end of file