Skip to content

DEPRECATED: Developing Natively

Parinita Mulak edited this page Oct 2, 2026 · 1 revision

Warning

Deprecated documentation

This page is retained for historical reference and may no longer describe the current Ursus application or development environment.

For current documentation, start with Solr in Ursus.

The official way to run ursus is with Docker. As an alternative, ursus and its required services can be run natively, as described by this page. These instructions are not supported and not likely to be maintained.

Development environment without Docker

Prerequisites

Requirements:

  1. Ruby and Bundler
  2. MySQL (or MariaDB), Node.js, and Java
  3. Various build tools (Ubuntu packages are listed below - not sure about other distros...)

Development Environment Initial Setup

  1. Install MySQL (or MariaDB)
  2. Ensure that Java, Rails > 5, and Ruby > 2.2 are installed
  3. Run bundle install
  4. Create an ursus database user, urus_development and ursus_test database and grant that user all permissions to the ursus databases.
  5. Run rails db:migrate
  6. To configure your development and test environments, create files called .env.development and .env.test. You can use the dotenv.sample file as an example for which environment variables you need to set.
  7. Make sure the config/blacklight.yml points to the solr index from your Californica environment. (This should be handled by the environment variables in the .env.* files)

Running Development Environment

  1. Make sure the solr from your Californica development environment is running.
  2. Make sure mysql is running
  3. Run rails s -p 3001. (If you are running both Californica and Ursus at the same time, they can't both use Rails default port 3000, so you'll have to change one of them.)
  4. Visit http://localhost:3001 in your browser (or whatever host and port you have configured for Rails)

Running the Test Suite

  1. Make sure the solr from your Californica test environment is running.
  2. Make sure mysql is running
  3. Run rspec spec