Upgrading Avalon 7.4 to Avalon 7.5

Requirements

Ruby 2.7.x and Node.js 14.x are recommended.

Config changes

Controlled digital lending is a new feature in Avalon 7.5.  It is disabled by default but can be enabled and configured in settings.yml:

controlled_digital_lending:
  enable: false
  # Choose whether every collection has CDL enabled or disabled by default
  collections_enabled: false
  default_lending_period: 'P14D' # ISO8601 duration format: P14D == 14.days, PT8H == 8.hours, etc.


Upgrade Steps

For Manual Installations

  1. Install ruby 2.7 (if needed)
  2. Update gems, and migrate DB
bundle install --with production --without development test
RAILS_ENV=production bundle exec rake db:migrate

3. Install node.js 14.x (if needed)

4. Update JS dependencies

yarn install # in Avalon root dir

5. Update configuration, see Config changes above

6. Restart passenger (if using)

passenger-config restart-app

For Docker Installations

Update new code from avalon-docker

git checkout main
git pull

Pull new Avalon image. 

docker-compose pull avalon

Check config changes then replace the Avalon containers

docker-compose up avalon worker

You can also build your own image, Docker Buildkit is recommended

docker-compose build avalon