-
sudo apt install curl
-
curl -sSL https://get.rvm.io | bash -s stable --rails
-
source /home/hyrax/.rvm/scripts/rvm
-
add to your .bashrc
### Load RVM into a shell session *as a function*
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"
- rvm install 2.3
- ruby -v
- sudo apt install redis-server
- sudo service redis start
- sudo apt install default-jre
- wget http://projects.iq.harvard.edu/files/fits/files/fits-0.8.5.zip
- unzip fits-0.8.5.zip
- mv fits-0.8.5 /usr/local/
- ln -s /usr/local/fits-0.8.5 /usr/local/fits
- cd /usr/local/fits/
- chmod a+x fits.sh
- ./fits.sh -h #make sure it works
- I added fits to my path in bashrc instead of adding it to config/initializers/hyrax.rb
export PATH="$PATH:$HOME/.rvm/bin:/usr/local/fits:$HOME/.rvm/scripts/rvm"
- sudo apt install imagemagick libreoffice nodejs phantomjs
(This is pretty much going to be a copy paste of from here on of this: https://github.com/projecthydra-labs/hyrax/wiki/Configuring-an-OS-X-Hydra-Dev-Environment#installing-hyrax)
- git clone git@github.com:projecthydra-labs/hyrax.git
- cd hyrax/
- gem install bundler
- rake engine_cart:generate #generates your internal test app
- cd .internal_test_app/
- bundle install
- rake hydra:server
go to localhost:3000 and see if things are running
gem install rspec # if you haven't already
I had to start the test servers a little differently than the normal servers, because the spec tests are looking at differrent ports.
cd .internal_test_app
solr_wrapper -v --config solr_wrapper_test.yml #keep running, go into new tab
fcrepo_wrapper -v --config fcrepo_wrapper_test.yml #keep running, go into new tab
rails s
rails generate rspec:install
rspec spec/<blah blah>/<blah>.rb