Skip to content

Instantly share code, notes, and snippets.

@mnyrop
Last active May 1, 2024 20:42
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 nyu.edu records if already cloned
    mkdir -p tmp/opengeometadata && rm -rf tmp/opengeometadata/edu.nyu/
    
  3. 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
    
  4. OPTIONAL!!!: clone other opengeometadata repos if you want to update/index those records too. (NOTE: It'll take forever)
    bundle exec sdr-cli clone
    
  5. Index all JSON in the tmp directory to the solr at SOLR_STAGING_URL/IP (look up here
    bundle exec sdr-cli index --directory='./tmp/opengeometadata' --solr_url='SOLR_STAGING_URL/IP:8983/solr/blacklight-core/'
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment