git clone git@github.com:pulibrary/DSS.git
cd DSS
asdf install # if you are using asdf
bundle install
yarn install
bundle exec rake servers:start
bundle exec rake db:seed
bundle exec rake dss:solr:update
bundle exec rake dss:solr:index
bundle exec rails s
(You may need to install yarn separately, if you haven't already.)
bundle exec rails c
user = User.find_by(uid: "YOUR_UID")
user.role = 'admin'
user.save!
Deploy with Capistrano
bundle exec cap production deploy
or
bundle exec cap staging deploy
If you need to re-index you can do either of the following.
bundle exec rake dss:solr:deindex
bundle exec rake dss:solr:index
or if you want to re-index one Resource object at a time
bundle exec rake dss:solr:reindex
RAILS_ENV=test bundle exec rake db:setup
bundle exec rspec
RUN_IN_BROWSER=true bundle exec rspec spec/system