Script to run on a server to generate anticensority PAC-script.
- GH_REPO — Repo to which generated PAC-script will be uploaded.
- GH_TOKEN — OAuth2 token that gives write access to GH_REPO (scope 'repo').
- In new tab:
- Deploy app > Manage App > Resources tab > Heroku Scheduler > Add new job > input "./bin/pac-script-generator" after $ > Save.
- Deploy tab > Connect to GitHub > connect to production branch with automatic deploys.
- I strongly recommend configuring some error monitoring addon for Heroku. Unfortunately I can't advise any due to lack of long-term experience, you may try https://logentries.com.