Skip to content

Running Hyrax in development

Anusha Ranganathan edited this page Mar 20, 2018 · 10 revisions

You can Run (Start and stop) each of the services individually.

Recommend using screen to run all of the services in development mode interactively

Fedora

To start Fedora from the console (using the Fedora packaged with Hyrax)

cd ~/data2paper
fcrepo_wrapper

Note: If the application has Fedora 4 Installed and integrated, you do not need to start Fedora 4 in screen

Fedora test

To start Fedora from the console (using the Fedora packaged with Hyrax) for test environment

fcrepo_wrapper -v --config config/fcrepo_wrapper_test.yml

Solr

To start Solr from the console (using the Solr packaged with Hyrax)

cd ~/data2paper
solr_wrapper

Note: If the application has Solr Installed and integrated, you do not need to start Solr in screen

Solr test

To start Solr from the console (using the Solr packaged with Hyrax) for test environment

solr_wrapper -v --config config/solr_wrapper_test.yml

Rails server

To start the rails server from the console

cd ~/data2paper
bundle exec rails s

To bind the server to 127.0.0.1 and pass in the environment

RAILS_ENV=development bundle exec rails server -b 127.0.0.1

If using unicorn rails

RAILS_ENV=development bundle exec unicorn -p 3000 -o 127.0.0.1

Note: If the application is configured for Running Rails app with Puma and Nginx with SSL certificate, you do not need to start the rails server in screen

Sidekiq

cd ~/data2paper
sidekiq

Note This may require bundle exec depending on how you use Ruby

Clone this wiki locally