If you're working on a PR for this project, create a feature branch off of main
.
- Update environment variables:
- RAILS_ENV=production
- METADATA_DATABASE_NAME=scholarspace_metadata_production (todo: fix this)
- PUMA_ENV=production (todo: fix this)
- Update
docker-compose.yml
to includedocker-compose-prod.yml
and notdocker-compose-dev.yml
- Once all containers are healthy, run
docker exec rails /bin/sh -lc "bundle exec rails db:seed"
to create default collection types, admin set, and an admin user (email and password set in.env
)
- Update environment variables:
- RAILS_ENV=development
- METADATA_DATABASE_NAME=scholarspace_metadata_development (todo: fix this)
- PUMA_ENV=development (todo: fix this)
- Update
docker-compose.yml
to includedocker-compose-dev.yml
and notdocker-compose-prod.yml
- To run tests, launch the application in development mode.
- Connect to the rails container (
docker exec -it rails /bin/sh
) - Run
bundle exec rspec
At the moment, there are 8 failing tests. Issue appears to be more with the test setup, so consider 8 failing tests passing for now, but needs to be fixed at some point.