git clone [email protected]: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.)
- If you have not yet logged in, bring the rails server up, and log in to the application via the UI
- Go on the rails console
bundle exec rails c
- Find your user and assign it the role of 'admin'
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