Skip to content

Instantly share code, notes, and snippets.

@younga3
younga3 / hyrax-notes
Created May 8, 2018 17:35
Hyrax notes
Hyrax notes
## Local fullstack development install
Centos 7
ruby 2.4.2
rails 5.0.6
fits 1.2.0
hyrax v2.1.0.rc2
fedora 4.7.3
solr 6.6.2
@younga3
younga3 / pierogi
Last active April 12, 2019 16:07
Obsessing.
tldr
dough1
3 cups all-purpose flour plus additional for kneading
1 cup water
1 large egg
2 teaspoons vegetable oil
1 teaspoon salt
knead, invert bowl over dough, let stand at room temp 1 hour.
[vagrant@localhost current]$ sudo /usr/local/bin/rails hyrax:default_admin_set:create RAILS_ENV=production
Warning: the running version of Bundler (2.1.2) is older than the version that created the lockfile (2.1.3). We suggest you to upgr$
de to the version that created the lockfile by running `gem install bundler:2.1.3`.
rails aborted!
RSolr::Error::Http: RSolr::Error::Http - 400 Bad Request
Error: {
"responseHeader":{
"status":400,
@younga3
younga3 / gist:483ca481e6f6c91725dee39b25a51d45
Created January 30, 2020 22:29
Error on fresh vagrant box.
[vagrant@localhost current]$ sudo su - deploy
[deploy@localhost ~]$ cd /opt/oars/current
[deploy@localhost current]$ RAILS_ENV=production bundle exec rake hyrax:default_collection_types:create
Default collection type is user_collection
Default collection type is admin_set
[deploy@localhost current]$ RAILS_ENV=production bundle exec rake hyrax:default_admin_set:create
Successfully created default admin set
[deploy@localhost current]$ RAILS_ENV=production bundle exec rake hyrax:workflow:load
I, [2020-01-30T22:21:52.456050 #24648] INFO -- : Loading permission_template ID=1 with workflow config /opt/oars/release
s/20200130T214929/config/workflows/default_workflow.json