Skip to content

Latest commit

 

History

History
18 lines (16 loc) · 1.27 KB

sozialpass-stores-import.md

File metadata and controls

18 lines (16 loc) · 1.27 KB

Sozialpass stores import

Currently we import new stores for sozialpass manually from csv every quarter. The source file will be provided in nextcloud by the city of nuernberg. This source file contains addresses which have to be converted to coordinates before they can be used for store import. The output file will be uploaded to the entitlement server.

  1. Enable geocoding and csvWriter in /backend/src/resources/config.local.yml
  2. Save the CSV file from Nextcloud to /backend/src/resources/import/Akzeptanzpartner-daten.csv
  3. Start import data job. This may take a while.
  4. Check the log if entries were filtered out and try to fix them. Check if acceptingstores were updated in the database
  5. Update repo sozialpass-nuernberg-data with content of csv file of src/main/resources/import/nuernberg-akzeptanzstellen_geoinfo.csv
  6. Update the csv file on nextcloud with current geoinfos from the output file.
  7. Connect to ssh <username>@entitlementcard.app
  8. Go to data directory cd /var/www/data
  9. Pull recent main sudo git pull
  10. You can wait until the next scheduled import will take place or run this command to trigger the import:
  11. sudo -u backend /opt/ehrenamtskarte/backend/bin/backend import