- SSH into staging instance and cd into current deployment
cd ~/nyu_geoblacklight/current
- Clear out previous/prod nyu.edu records in local folder if already cloned
mkdir -p tmp/opengeometadata && rm -rf tmp/opengeometadata/edu.nyu/
- OPTIONAL!!: Clear out live SOLR index to get a clean slate (see: https://stackoverflow.com/questions/23228727/deleting-solr-documents-from-solr-admin); you might want to do this if NYU records have been removed from the repo or if non-NYU records were previously indexed to stage for testing and now you want them cleared out of the way.
- Clone records from staging repo where sdr-cli will expect NYU records
git clone https://github.com/NYU-DataServices/gis-metadata-staging tmp/opengeometadata/edu.nyu
- OPTIONAL!!!: clone other opengeometadata repos if you want to update/index those records too. (NOTE: It'll take forever)
bundle exec sdr-cli clone
- Index all JSON in the
tmp
directory to the solr atSOLR_STAGING_URL
(look up here); Make sure it starts withhttp://
and is the URL, not the IP!bundle exec sdr-cli index --directory='./tmp/opengeometadata' --solr_url='{SOLR_STAGING_URL}:8983/solr/blacklight-core/'
Last active
October 25, 2024 16:21
-
-
Save mnyrop/d0278b8671fe916fc3e2801631d7b89d to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment