Skip to content

Instantly share code, notes, and snippets.

@mbklein
Last active June 4, 2020 19:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mbklein/778a84bad0b67b0e72c62d7a31e7f669 to your computer and use it in GitHub Desktop.
Save mbklein/778a84bad0b67b0e72c62d7a31e7f669 to your computer and use it in GitHub Desktop.
Hyrax 3.0 Upgrade Notes

Hyrax 3.0 Upgrade Notes

$ devstack down -v
$ devstack up -d arch
$ bundle exec rake arch:seed ADMIN_USER=bmq449 ADMIN_EMAIL=brendan-quinn@northwestern.edu SEED_FILE=seed.yml
  • Update Gemfile
gem 'hyrax', '~> 3.0.0.beta.rc2`
  • bundle update

  • Change GenericWork to Hyrax::Work

  • rails g hyrax:install -f

Trying a vanilla app install:

bundle exec rails generate hyrax:work_resource Krow
/Users/bmq449/.asdf/installs/ruby/2.6.3/lib/ruby/gems/2.6.0/gems/valkyrie-1.7.1/lib/valkyrie/types.rb:125: warning: already initialized constant #<Module:0x00007fe38e759a80>::Int
/Users/bmq449/.asdf/installs/ruby/2.6.3/lib/ruby/gems/2.6.0/gems/dry-types-0.12.3/lib/dry/types.rb:119: warning: previous definition of Int was here
[DEPRECATION] pg will not be included as a dependency in Valkyrie's gemspec as of the next major release. Please add the gem directly to your Gemfile if you use a postgres adapter.
[DEPRECATION] activerecord will not be included as a dependency in Valkyrie's gemspec as of the next major release.Please add the gem directly to your Gemfile if you use a postgres adapter.
Could not find generator 'hyrax:work_resource'. Maybe you meant 'hyrax:work', 'valkyrie:resource' or 'hyrax:arkivo_api'
Run `rails generate --help` for more options.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment