#19521: Update online source to be consistent with onine API ---------------------------+------------------------ Reporter: amj703 | Owner: atagar Type: defect | Status: closed Priority: Low | Milestone: Component: Core Tor/Stem | Version: Severity: Normal | Resolution: fixed Keywords: website | Actual Points: Parent ID: | Points: Reviewer: | Sponsor: ---------------------------+------------------------ Changes (by atagar):
* status: new => closed * resolution: => fixed Comment: Ick, sorry I left this broken so long. On reflection the fix is actually really trivial. Turns out it's safe to issue a 'make clean' on staticforme (location we build the site) since it apparently doesn't serve live content. Source information should now stay accurate and up to date. Also, there was a bug in the cron causing the site to be republished every hour rather than fifteen minutes. Republication is really quick so dropped that to be done every five minutes. For posterity's sake since I touch site publication so infrequently here's what I did... {{{ % ssh -A -t perdulce.torproject.org ssh -A staticiforme.torproject.org % sudo -u stem crontab -l */5 * * * * /home/stem/build_site % sudo -u stem cat /home/stem/build_site #!/bin/sh export PATH=/home/stem/bin:$PATH export PYTHONPATH=/home/stem/lib/python cd /home/stem/stem git pull cd docs make clean make html sudo -u mirroradm static-master-update-component stem.torproject.org echo "$(date)" > /home/stem/site_last_built }}} To test this I temporarily dropped the cron to run every minute and hammered reloading the site for ~5 minutes looking for 404s due to the clean. Nothing showed up, and pages with source got corrected by the introduction of 'make clean'. -- Ticket URL: <https://trac.torproject.org/projects/tor/ticket/19521#comment:6> Tor Bug Tracker & Wiki <https://trac.torproject.org/> The Tor Project: anonymity online _______________________________________________ tor-bugs mailing list tor-bugs@lists.torproject.org https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs