OCDS documentation tasks

Clean draft documentation

  1. Connect to the server:

    curl --silent --connect-timeout 1 standard.open-contracting.org:8255 || true
    ssh root@standard.open-contracting.org
    
  2. Switch to the ocds-docs user:

    su - ocds-docs
    
  3. Run 1-size.sh to get the total sizes of old drafts. For example, for drafts older than 180 days:

    ./1-size.sh 180
    
  4. Run 2-delete.sh to delete the old drafts. For example, for drafts older than 180 days:

    ./2-delete.sh 180
    

Check 404 errors

  1. Connect to the server:

    curl --silent --connect-timeout 1 standard.open-contracting.org:8255 || true
    ssh root@standard.open-contracting.org
    
  2. Count 404 errors:

    zgrep " 404 " /var/log/apache2/other_vhosts_access.log* | cut -d ' ' -f 8 | sort | uniq -c | sort -n