- SSH into staging instance and cd into current deployment:
cd ~/nyu_geoblacklight/current
- Pull the up-to-date records from OpenGeoMetadata repositories. You can update all records or only NYU's records by running either:
or:
bundle exec sdr-cli pull
respectively.bundle exec sdr-cli pull --repo edu.nyu
- Index all JSON records in the
tmp
directory to the Solr atSOLR_PROD_URL
(look that URL up here); NOTE: Make sure it starts withhttp://
, ends with:8983/solr/blacklight-core/
and contains the SOLR URL, not the IP!bundle exec sdr-cli index --directory='./tmp/opengeometadata' --solr_url='http://{SOLR_PROD_URL}:8983/solr/blacklight-core/'
- SSH into staging instance and cd into current deployment:
cd ~/nyu_geoblacklight/current
- Clear out previous nyu.edu records stored in the 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).. This would ensure the Solr core only includes records you'll index in the next step. But it is not a requirement.
- Clone records from our staging repository into the directory (
tmp/opengeometadata/edu.nyu
) thatsdr-cli
expects NYU records to be in: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). This is only relevant if you want to confirm that other institions records look right in our instance. It helps for testing app behavior instead of testing the structure of our NYU records.
bundle exec sdr-cli clone
- Index all JSON records in the
tmp
directory to the solr atSOLR_STAGING_URL
(look that URL up here); NOTE: Make sure it starts withhttp://
, ends with:8983/solr/blacklight-core/
and contains the SOLR URL, not the IP!bundle exec sdr-cli index --directory='./tmp/opengeometadata' --solr_url='http://{SOLR_STAGING_URL}:8983/solr/blacklight-core/'