Install Ruby on Rails with rbenv
rbenv install 2.4.2
echo "gem: --no-document" > ~/.gemrc
as I didn't want to skip the docs)Install Hyrax pre-requisites
sudo apt-get install redis-server && sudo systemctl enable redis-server.service
sudo apt-get install sqlite3 libsqlite3-dev
cd /home/appuser
wget http://projects.iq.harvard.edu/files/fits/files/fits-1.0.5.zip
unzip fits-1.0.5.zip
cd fits-1.0.5/
chmod a+x fits.sh
./fits.sh -h
PATH=/home/appuser/fits-1.0.5/fits.sh:$PATH
Add this to the file ~/.profile
vim ~/.profile
After modifications, my path in the looks like
PATH="$HOME/bin:$HOME/.local/bin:$PATH:$HOME/fits-1.0.5/fits.sh"
config.fits_path = "/home/appuser/fits-1.0.5/fits.sh"
which soffice
returns a path, you're done. if not,install libre office
sudo apt install libreoffice-common
Test which soffice
returns a path
Clone the Data2paper repository
Install the gems
bundle install
Create the database
bundle exec rake db:create
Run the migrations
bundle exec rake db:migrate
Fetch Solr and Fedora and run the application
bundle exec rails hydra:server
Start background workers
sidekiq
Create the default admin set
bundle exec rails hyrax:default_admin_set:create
Create an admin user
Register a user for data2paper at http://localhost:3000/users/sign_up
$ rails c
admin = Role.create(name: "admin")
admin.users << User.find_by_user_key( "your_admin_users_email@fake.email.org" )
admin.save
Then login using the URL http://localhost:3000/admin/sign_in?locale=en