Manual Reporting
To manually run the monthly report:
2- If you want to preview some of the emails, you can run it locally with
1
PG_DATABASE=opencollective_prod_snapshot DEBUG=preview npm run cron:monthly
Copied!
(it won't send real emails but it will output links to preview them in the browser)
3- Run bash on heroku production:
1
heroku run bash --app opencollective-prod-api
Copied!
4- Run the monthly cron job manually:
1
npm run cron:monthly
Copied!
If you want to only run it for certain collectives, modify the query here: https://github.com/opencollective/opencollective-api/blob/main/cron/monthly/collective-report.js
Export as PDF
Copy link