updated info about process.js

This commit is contained in:
Hugh Rundle 2025-04-19 11:44:41 +10:00
parent 32eac6d193
commit d3e0522671
Signed by: hugh
GPG key ID: A7E35779918253F9

View file

@ -28,7 +28,9 @@ We also need a MapBox public token. THese are safe to use in public code, especi
## Updating the topojson
**NOTE**: If you update the topojson file and push, the server webhook will fail because there will be local changes. This is currently being fixed in the `process.js` file used by `git-webhook` (TODO)...
Each time a new changes is pulled into the repository, the code will be pushed to the website [via a webhook](https://git.suboptimal.solutions/hugh/git-webhooks). This processes any changes in `data` and updates the `topojoson` file as needed. If we did this all in the repository on the server, it would cause merge conflicts. Instead, we first copy the necessary files over to `/srv/` and _then_ process the files.
This uses the `process.js` file in this repository, but the file has been copied over to the `git-webhook` files on the server so that the webhook can run it. This required a few adjustments to what is `npm install`ed.
### 1. Update boundaries