Files
spl-tools/Updating SPL Website.md
2024-08-26 22:26:46 +10:00

1.3 KiB

Updating SPL Website

  1. Download any candidate pictures provided by volunteer to the appropriate council folder in the spl-data repo
  2. Ensure that the file name of each picture contains the candidate's full name (eg. for a candidate named Joe Bloggs, the file could be named JoeBloggs.jpg or WardName_Joe_Bloggs.png, etc)
  3. Resize the pictures to 200px x 200px
  4. Commit the pictures to the spl-data repo
  5. Download CSV provided by a volunteer containing the candidate scores
  6. Normalise the CSV using the "CSV Normaliser" tool (eg. php csv-normaliser/main.php --input ~/Downloads/COUNCIL_NAME.csv --media ../spl-data/council-name --output ../spl-data/council-name/candidates.csv)
  7. Commit the candidates.csv file to the spl-data repo
  8. Push commits in the spl-data repo to the Git server
  9. SSH into the Streets People Love WordPress server
  10. Pull the latest changes into the spl-data repo
  11. Run the bulk-media-upload.sh script (eg sudo ./bulk-media-upload.sh ../spl-data)
  12. Commit any added media .json files in the spl-data repo
  13. Push commits in the spl-data repo to the Git server (use the spl git user)
  14. Run the make-council-pages.sh script to regenerate all pages (eg sudo ./make-council-pages.sh) OR regenerate a single page (eg sudo ./make-council-pages.sh "Council Name")