Skip to content
This repository has been archived by the owner on Nov 18, 2020. It is now read-only.

Migrating to 1.5

mjgiarlo edited this page Apr 9, 2013 · 24 revisions

N.B. This is for development instances!

Stop services

  • Stop Rails server
  • Shut down resque-pool: kill -2 $(cat tmp/pids/resque-pool.pid)
  • Shut down Solr and Fedora: bundle exec rake jetty:stop

Ruby 2.0

  • Update RVM: rvm get stable
  • Reload RVM in your shell: rvm reload
  • Install Ruby 2.0: rvm install 2.0.0
  • Set Ruby 2.0 as default: rvm use 2.0.0 --default

Hydra 6.0

  • Switch to development branch: git checkout develop
  • Pull latest from development branch: git pull origin develop
  • Use Ruby specified in .rvmrc: source .rvmrc
  • Update your submodule pointer: git submodule sync
  • Revert changes to hydra-jetty: (cd jetty; git checkout .)
  • Update to latest hydra-jetty: git submodule update
  • Update dependencies: bundle install
  • Migrate database: bundle exec rake db:migrate
  • Update jetty config (incl. new Solr config and schema): bundle exec rake jetty:config
  • Start Fedora and Solr: bundle exec rake jetty:start
  • Start resque-pool: bundle exec resque-pool --daemon --environment development start
  • Make sure specs are passing: bundle exec rake spec
  • Make sure features are passing: bundle exec cucumber
  • Resolrize objects: bundle exec rake scholarsphere:resolrize
  • Regenerate sitemaps: bundle exec rake sitemap:generate
  • Start Rails server: rails s
Clone this wiki locally