Installing Samvera Hyrax on Fedora Server Latest
Samvera Hyrax is a Ruby on Rails-based digital repository system used by many academic, cultural, and scientific institutions worldwide. In this tutorial, we will guide you through the installation process of Samvera Hyrax on Fedora Server Latest.
Prerequisites
Before starting with the installation process, you should ensure that your system meets the following prerequisites:
- Fedora Server Latest installed on your machine with root access.
- Ruby 2.5+ and Rails 5+ installed.
- Git version control software installed.
- PostgreSQL 9.4+ installed and running.
- Redis installed and running.
Step 1: Clone the Samvera Hyrax repository
First, clone the Samvera Hyrax repository from the GitHub:
$ git clone https://github.com/samvera/hyrax.git
Once the repository is cloned, navigate to the Hyrax directory:
$ cd hyrax
Step 2: Install dependencies
Next, install the necessary dependencies by running the following command:
$ bundle install --deployment --without development test
Step 3: Configure the database
Configure the database by creating a configuration file:
$ cp config/database.yml.example config/database.yml
Then, modify the configuration file to suit your PostgreSQL database:
$ nano config/database.yml
Step 4: Setup the database
Create the database and run the migrations by running the following commands:
$ rake db:create
$ rake db:migrate
Step 5: Start the application
Finally, start the Samvera Hyrax application:
$ rails server
And in another terminal:
$ bundle exec sidekiq
You can access the application at http://localhost:3000.
Congratulations! You have successfully installed Samvera Hyrax on Fedora Server Latest.