Next Generation Archives Online on ArcLight
To setup the server:
bundle install
bundle exec rake db:migrate
Then, in a separate console, run the Rails and Solr servers:
bundle exec rake demo:server # runs both Rails and Solr
Sample files are included in the data directory. To index sample data:
REPOSITORY_ID=paleontology DIR=./data/paleontology rake arclight:index_dir
Open a browser and verify the application and indexed EAD files at http://localhost:3000/collections
See https://github.com/sul-dlss/arclight/wiki/Upgrading-your-ArcLight-application
The indexing for this application is performed as a background process using Delayed Jobs. https://github.com/collectiveidea/delayed_job
Make sure to run rake jobs:work
to start the background processing.
More information about running the jobs in production can be found here: https://github.com/collectiveidea/delayed_job#running-jobs
There is a cron job that is scheduled to run every 24 hours which runs the indexer. This is managed with the Whenever gem. You will need to run this command in a deploy script or on the server to start the job.
bundle exec whenever --update-crontab
Information on the Whenever gem can be found at https://github.com/javan/whenever
This uses the Devise Bootstrap Views gem to style the user authentication pages.
The gem supports i18n localizations, though it is not enabled by default. To add it to the app, use devise-i18n
This app uses the default views in the bootstrap-views gem, if you wish to customize them further, run rails generate devise:views:bootstrap_templates
to create a local copy to modify.
To add home page content:
- add html content at 'app/catalog/_home.html.erb
To add Repositories page content:
- add html content to 'app/views/arclight/repositories/index.html.erb'
To add new static pages:
- add a method to app/controllers/pages_controller.rb def new_page end
- create a new file in app/views/pages: new_page.html.erb
- add new path to config/routes.rb get '/new_page', to: 'pages#new_page', as: 'new_page'
- add link to 'app/views/shared/_static_pages_links'