Skip to content

Instantly share code, notes, and snippets.

@mnyrop
Last active October 25, 2024 16:21
Show Gist options
  • Save mnyrop/d0278b8671fe916fc3e2801631d7b89d to your computer and use it in GitHub Desktop.
Save mnyrop/d0278b8671fe916fc3e2801631d7b89d to your computer and use it in GitHub Desktop.
  1. SSH into staging instance and cd into current deployment
    cd ~/nyu_geoblacklight/current
    
  2. Clear out previous/prod nyu.edu records in local folder if already cloned
    mkdir -p tmp/opengeometadata && rm -rf tmp/opengeometadata/edu.nyu/
    
  3. 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.
  4. 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
    
  5. OPTIONAL!!!: clone other opengeometadata repos if you want to update/index those records too. (NOTE: It'll take forever)
    bundle exec sdr-cli clone
    
  6. Index all JSON in the tmp directory to the solr at SOLR_STAGING_URL (look up here); Make sure it starts with http:// and is the URL, not the IP!
    bundle exec sdr-cli index --directory='./tmp/opengeometadata' --solr_url='{SOLR_STAGING_URL}:8983/solr/blacklight-core/'
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment