forked from WGBH-MLA/ams
-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade to Hyrax 4.0 in new rails branch #22
Milestone
Comments
Blocked by #21 |
This was referenced Aug 3, 2023
jillpe
changed the title
Create Hyrax in new rails branch
Update Hyrax in new rails branch
Aug 7, 2023
ShanaLMoore
changed the title
Update Hyrax in new rails branch
Upgrade to Hyrax 4.0 in new rails branch
Aug 7, 2023
2 tasks
This got upgraded as part of #23 |
ShanaLMoore
added a commit
to WGBH-MLA/ams
that referenced
this issue
Aug 9, 2023
This commit upgrade bootstrap per the 'Upgrade Hyrax 3.x to Hyrax 4' wiki instructions. wiki: - https://github.com/samvera/hyrax/wiki/Upgrade-Hyrax-3.x-to-Hyrax-4 Issue: - scientist-softserv#22
3 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Summary
Upgrade technique, create a separate gemfile that contains the dependencies
Acceptance Criteria
FOLLOW UP TICKETS
Testing Instructions
Notes
Suggestion: follow Hyrax's release notes for various changes
Upgrade instructions - Getting started
These instructions are based on updating nurax to hyrax 4.0.
Update Gemfile to specify these gems:
gem 'rails', '~> 6.0.5'
gem 'hyrax', '~> 4.0'
gem 'sass-rails', '~> 6.0'
gem 'bootstrap', '~> 4.0'
run bundle update
If this command takes an abnormally long time to complete, try deleting Gemfile.lock and retry.
Update app/assets/javascripts/application.js as follows:
Add these three lines after //= require rails-ujs:
//= require popper
//= require twitter/typeahead
//= require bootstrap
Add //= require blacklight_gallery after //= require blacklight/blacklight
Update app/assets/stylesheets/application.css as follows:
Update app/assets/stylesheets/hyrax.scss as follows:
Remove @import "bootstrap-sprockets";
Add @import "hyrax/blacklight_gallery"; after any other blacklight_gallery lines and before @import 'hyrax/hyrax';
In app/controllers/application_controller.rb remove skip_after_action :discard_flash_if_xhr
In app/models/user.rb remove:
Depending on the amount of customization present in your hyrax application, more changes may be needed. In particular, many Bootstrap CSS class names were updated in this release
The text was updated successfully, but these errors were encountered: