This code powers tosback.org (a job on the crontab of the tosback3 user runs ./run.sh once every day, see ./run.sh-example for a version of that script with the MySQL password removed). It was forked from https://github.com/ambanum/CGUs. See the README there for more details about the code!
It will also feeds into edit.tosdr.org which feeds into tosdr.org. For that, until now I use:
export MYSQL_HOST=localhost
export MYSQL_USER=root
export MYSQL_PASSWORD="..."
export MYSQL_DATABASE=tosback
export PSQL_CONNECTION_STRING="..."
node src/test.jsThere is also an admin script that I use for maintenance on the edit-tosdr-org production database. For instance, to merge document 123 into document 456, as userId 789, run:
export PSQL_CONNECTION_STRING="..."
node src/eto-admin.js 789 merge_documents 456 789And to update the crawl for the Twitter PP and check quotes, as userId 789, run:
export PSQL_CONNECTION_STRING="..."
node src/eto-admin.js 789 update_crawl 90 ../tosback2/crawl_reviewed/twitter.com/Privacy\ Policy.txtTo only check quotes of document 90, as userId 789, run:
export PSQL_CONNECTION_STRING="..."
node src/eto-admin.js 789 check_quotes 90To check quotes of all documents, as userId 789, run:
export PSQL_CONNECTION_STRING="..."
node src/eto-admin.js 789 check_quotes