This is software for managing the users and archives in the hosted archive service. It authenticates users and manages the other applications used to run the archives, including creating new instances, starting the instances, and stopping the instances as needed. It also allows customization of archive titles, logos, and themes.
This is a work in progress!! Do not use it yet unless you are helping develop the hosted archive service.
Make sure you have nodejs installed
- Pull this repository
- Install the
redis-server
debian package - Run
bundle install
- Set the following env variables in
config/initializers/tt_instance_config.rb
- ARCHIVE_CONFIG_PATH: The path where archive config files should be saved
- ARCHIVEADMIN_URL: The url where this application is accessible
- HOURS_TO_ARCHIVEVM_TIMEOUT: # of hours where unused archive vms should shutdown
- TESTMODE: Set to true if testing locally not with VM. Not needed in production.
- PREPUB_ARCHIVE_DOMAIN: Domain used for private archives
Note: DocManager
must be running
- Run Redis:
QUEUE=* rake environment resque:work
- Start the app:
rails server -p 3002
- Run
bundle exec crono RAILS_ENV=development
in a session (only needed forproduction
) - Start the app: rails server -p 3002 (Note: DocManager must be running)
With the current version of this software, you still need to do the following:
-
Manually install all pipeline components
-
Start all pipeline components manually or with a script
-
Manually set all environment variables. To work, the
PROJECT_INDEX
andARCHIVE_SECRET_KEY
variables need to be set to those for the corresponding archive. The index name for an archive is viewable on the interface. The secret key needs to be gotten with rails console. -
Run the OCR server manually
It does, however, create the DM project/data sources and elastic index automatically as well as config files with env variables.