Rails application to support the Sloan Dash grant project for self-deposit submission of scholarly works.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.config-travis
app
bin
config
db
documentation
lib
log
public
script
spec
vendor/assets
.generators
.gitignore
.rubocop.yml
.ruby-version
.simplecov
.travis.yml
Capfile
Gemfile
Gemfile.lock
LICENSE.md
README.md
Rakefile
config.ru
copy_logos.sh
release_notes.md
symlink_config.sh
travis-prep.sh

README.md

Dash

Build Status

Introduction

Dash is the UC Curation Center's implementation of the Stash application framework for research data publication and preservation, based on the DataCite Metadata Schema and the University of California’s Merritt repository service.

Development

Installation

See Dash2 Installation for installation notes.

Quick Cheat Sheet

Development environment setup

At the same level as the dashv2 directory:

  • Clone the Stash repository (public):

    git clone https://github.com/CDLUC3/stash.git
    
  • Clone the dash2-config repository (private to CDL developers):

    git clone git@github.com:cdlib/dash2-config.git
    
  • Symlink configuration files from dash2-config into the dashv2 config directory:

    ./symlink_config.sh
    

Running integration/feature tests locally

In the dashv2 directory:

  • run travis-prep.sh
  • run bundle exec rake

Capistrano deployment

To deploy the latest (committed) code from GitHub:

bundle exec cap <environment> deploy [BRANCH="<branch-or-tag-name>"]

The $BRANCH environment variable is optional; if it’s omitted, the deploy script will prompt you.

Miscellaneous tasks

  • The rake app_data:clear task will clear most database and SOLR data. It can be useful to run before testing data import and transformation from our previous version of the app. It will not erase data in the production environment or until it gets confirmation that you really want to erase the data.

    bundle exec rake app_data:clear RAILS_ENV=<rails-environment>