-
Notifications
You must be signed in to change notification settings - Fork 10
Creating, installing, and running your Warclight application
Note: Setting up a development environment for Warclight is outside the scope of this document. Checkout https://gorails.com/setup for help in installing Ruby, Git, and Rails.
To create your Warclight application, you can start by running the Warclight generator:
# switch out "my-app" for the location you want to install the application to
rails new my-app -m https://raw.githubusercontent.com/archivesunleashed/warclight/master/template.rb
This will create a new Warclight application in a directory my-app
and it takes a few minutes.
Next, change directory into the new application's directory and install the Ruby dependencies.
cd my-app
bundle install
Warclight uses Apache Solr for search. To quickly setup Solr for your Warclight instance, install the solr_wrapper gem.
gem install solr_wrapper
To start the server, after installing the gem you can run the solr_wrapper
command from the applications directory.
solr_wrapper
Starting Solr 6.6.0 on port 8983 ... http://127.0.0.1:8983/solr/
Solr is now running!
To run your Warclight application you will need to open up a new terminal session (because we want to keep the Solr server running).
# make sure to cd back to your application
cd my-app
You can then run the Warclight rails application using the following command:
rails s
By default, the Warclight application will be accessible at http://localhost:3000/. The server can be stopped by pressing CTRL+c
To upgrade your Warclight application when a new version of Warclight is released:
bundle update
rails generate warclight:update
This work is primarily supported by the Andrew W. Mellon Foundation. Other financial and in-kind support comes from the Social Sciences and Humanities Research Council, Compute Canada, the Ontario Ministry of Research, Innovation, and Science, York University Libraries, Start Smart Labs, and the Faculty of Arts and David R. Cheriton School of Computer Science at the University of Waterloo.
Any opinions, findings, and conclusions or recommendations expressed are those of the researchers and do not necessarily reflect the views of the sponsors.
This project drew inspiration from the Arclight and UKWA's Shine, and would like to thank those creators and contributors.