functionality has been ported to https://github.com/sul-dlss/preservation_catalog
A Sinatra web application for providing access to Digital Objects in SDR Storage.
This will be replaced by preservation-catalog as a more robust, easier to maintain approach that won't have to go to the preservation storage roots for absolutely everything.
-
git clone
andcd
into the cloned repository -
setup ruby dependencies and run tests
bundle install --without production ./bin/test.sh
Environment variables are set in various places, with the following order of importance:
-
On deployed apps, running under Apache/Passenger:
- see
/etc/httpd/conf.d/z*
- The content of the config files is managed by puppet
- see
-
Each deployment system has configurations, and other private files, available in the dlss/shared_configs private repo; see
-
Command line values that precede
./bin/<util>
,foreman
, orrackup
, e.g.APP_ENV=development RACK_ENV=development .binstubs/foreman start APP_ENV=development RACK_ENV=development .binstubs/rackup
-
.env
file settings can supplement, without replacing, existing values- see
.env_example
- see https://github.com/bkeepers/dotenv
- see
-
./config/boot.rb
can set defaults for missing values
bundler exec rackup
Capistrano is configured to run the deployments. See cap -T
for all the options.