1.3 KiB
1.3 KiB
Updating SPL Website
- Download any candidate pictures provided by volunteer to the appropriate council folder in the
spl-datarepo - 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 namedJoeBloggs.jpgorWardName_Joe_Bloggs.png, etc) - Resize the pictures to 200px x 200px
- Commit the pictures to the
spl-datarepo - Download CSV provided by a volunteer containing the candidate scores
- 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) - Commit the candidates.csv file to the
spl-datarepo - Push commits in the
spl-datarepo to the Git server - SSH into the Streets People Love WordPress server
- Pull the latest changes into the
spl-datarepo - Run the
bulk-media-upload.shscript (egsudo ./bulk-media-upload.sh ../spl-data) - Commit any added media .json files in the
spl-datarepo - Push commits in the
spl-datarepo to the Git server (use thesplgit user) - Run the
make-council-pages.shscript to regenerate all pages (egsudo ./make-council-pages.sh) OR regenerate a single page (egsudo ./make-council-pages.sh "Council Name")