Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

See What's New in Avalon 6.1 for more details.

Upgrade Steps

For manual install:

Download and deploy new code from avalon repo

Code Block
languagebash
git checkout master
git pull

Update gems and DB

Code Block
languagebash
bundle install
RAILS_ENV=production bundle exec rake db:migrate

Restart passenger (if using)

Code Block
languagebash
passenger-config restart-app

Restart Resque (background jobs processor)

Code Block
languagebash
pkill -f resque
RAILS_ENV=production BACKGROUND=yes bundle exec rake resque:scheduler
RAILS_ENV=production BACKGROUND=yes QUEUE=* bundle exec rake resque:work

For Docker install:

For users who installed Avalon using our docker-compose script

Fetch new script

Code Block
languagebash
git checkout master
git pull

Download new images and update the containers

Code Block
languagebash
docker-compose pull
docker-compose up

Upgrade to using Database-backed Noid ID Minter

Avalon 6.1 switched to using a database-backed noid id minter by default since it is more robust and recommended by the active_fedora-noid gem.

Set up the DB for minter state

 

Code Block
languagebash
bundle exec rake db:migrate

Backup your minter state file (default location is /tmp/minter-state). Skip if you do not have one.

Code Block
languagebash
cp /tmp/minter-state /tmp/minter-state.bak
bundle exec rake active_fedora:noid:migrate:yaml_to_marshal
bundle exec rake active_fedora:noid:file_to_database
# Remove the minter state file
rm /tmp/minter-state

If the following command runs without any output then it was successful

Code Block
languagebash
bundle exec rails r "MediaObject.new.assign_id"

...