-
Install Ruby on Rails with rbenv
- Installed Ruby 2.4.2
rbenv install 2.4.2
- Rails 5.1.4 (Did not run
echo "gem: --no-document" > ~/.gemrc
as I didn't want to skip the docs) - Node.js for javascript runtime
- Installed Ruby 2.4.2
-
Install Hyrax pre-requisites
- Install Redis
sudo apt-get install redis-server && sudo systemctl enable redis-server.service
- Install Sqlite
sudo apt-get install sqlite3 libsqlite3-dev
- Install Fits
- Download Fits
cd /home/appuser wget http://projects.iq.harvard.edu/files/fits/files/fits-1.0.5.zip unzip fits-1.0.5.zip
- Make fits.sh an executable
cd fits-1.0.5/ chmod a+x fits.sh
- Test fits.sh -h return a value
./fits.sh -h
- Add full path for fits.sh to $PATH
Add the full path for fits.sh to $PATH
Add this to the file ~/.profile
PATH=/home/appuser/fits-1.0.5/fits.sh:$PATH
After modifications, my path in the looks likevim ~/.profile
PATH="$HOME/bin:$HOME/.local/bin:$PATH:$HOME/fits-1.0.5/fits.sh"
- Also modify config/initializers/hyrax.rb and set the full path for fits in it
config.fits_path = "/home/appuser/fits-1.0.5/fits.sh"
- Download Fits
- Install Libre office for derivtaives
Ifwhich soffice
returns a path, you're done. if not,install libre officeTestsudo apt install libreoffice-common
which soffice
returns a path
- Install Redis
-
Clone the Data2paper repository
-
Install the gems
bundle install
-
Create the database
bundle exec rake db:create
- Currently need to change the password in config/database.yml
-
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
-
Notifications
You must be signed in to change notification settings - Fork 1
anusharanganathan/data2paper
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Rails helper application to submit data papers from repositories to publishers
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published