Skip to content

GeoBlacklight 1.9 Upgrade Notes

Eric Larson edited this page Dec 11, 2018 · 5 revisions

Tasks

  • GitHub project board
  • clone geoblacklight
  • clone spatial_data_repository

Stand up local GeoBlacklight instance

  • cd geoblacklight
  • git checkout 2a4960d5e3b0e7e75b8e50e144f982e5f393edcf
  • bundle
  • bundle exec rake geoblacklight:server

Stand up local SDR instance

  • cd spatial_data_repository
  • bundle
  • bundle exec rails server --port=3001

Error / Figs related Devise.secret_key was not set. Please add the following to your Devise initializer: (RuntimeError) config.secret_key = ‘2c847492b6d434c808e63a93ff16a7a897aa4c09943edaaf7aa498a29649048113cf55731282e39a82ae7ce3fb9f1087586d474fc483ad6f63806986a5a02a6c'

Added secret_key to devise.rb initializer (@TODO: temp fix)


  • bundle exec rails server --port=3001

Error / Figs related / Rails deprecation ERROR RuntimeError: Missing secret_key_base for 'development' environment, set this value in config/secrets.yml

  • bundle exec rake secret

Added rake value to config/secrets.yml (@TODO: temp fix)


  • bundle exec rails server --port=3001

Error / Figs related / Database config Mysql2::Error (Access denied for user 'root'@'localhost' (using password: NO)):

Set development env database.yml to: sqlite3 (@TODO: temp fix)


  • bundle exec rails server --port=3001

Error / Figs related / Solr config Set blacklight.yml solr connection to GBL (@TODO: temp fix)


  • bundle exec rails server --port=3001

Error / Could not find table ‘users'

  • bundle exec rake db:schema:load
  • bundle exec rails server --port=3001

APP IS RUNNING NOW

  • Homepage loads
  • Search results load
  • Stanford, Tufts, MIT, Princeton results load
  • 404 pages for old-style NYU slugs
  • Facets
  • Missing NYU “Format” facet (in local dev / GBL solr / custom “nyu_addl_format_sm" field)

Potential: Features to debug / add

  • Key not found “nyu_addl_format_sm” (local Solr/GBL customization)
  • Git: shall we git flow repo?
  • Add: Empty/Blank search to “browse” collection
  • Add: Leaflet fullscreen toggle
  • Add: Solr synonyms
  • Gems: sitemap_generator, blacklight_advanced_search, blacklight_range_limit

FIGS

ENV vars for local dev environment.

  1. Add a local config/vars.yml file.
  2. Add values for these vars:
  • SECRET_KEY_BASE:
  • DEVISE_SECRET_TOKEN:
  • SOLR_URL:
  • SQL_HOST:
  • SQL_PORT:
  • SQL_DB:
  • SQL_USER:
  • SQL_PASS:

Once in place, you can remove @TODO local overrides for solr, database, devise, secret_key_base


TESTS

  • bundle exec rails test

ERROR: Devise.secret_key was not set

Add test env to FIGS config/vars.yml