An admin interface for ReCap/SCSB written in ruby on rails. Based on NYPL/nypl-recap-admin.
This application uses docker-compose.yml. You can edit code as on your machine and expect it to hot-reload like you usually would. Forget Docker is there.
- Clone this repo.
- In this app's root directory
cp ./.env.example ./.env
and fill it out. (See directions in.env.example
) - Add the following to
/etc/hosts
:127.0.0.1 local.nypl.org
. This makes an alias as a public URL for our local IP. NYPL’s SSO service only accepts public URLs as the redirect URI. So for running locally, we need to assign a public address to our local IP. - Add your email address to s3://scsbuster-authorized-users-qa/authorization.json (nypl-digital-dev)
docker-compose up
- Go to http://local.nypl.org:3001
docker-compose run webapp bash
(brings up a web container)RAILS_ENV=test bundle exec rspec
(in container)exit
to leave the container.
docker-compose run webapp bash
(brings up a web container)bundle exec rails c
(in container)exit
to leave the container.
docker-compose run webapp bash
(brings up a web container)- In the code, add your breakpoint with
binding.pry_remote
. Hit the endpoint. bundle exec pry-remote
(in container)exit
to leave the container.
Our branches (in order of stability are):
Branch | Environment | AWS Account |
---|---|---|
qa | qa | nypl-digital-dev |
production | production | nypl-digital-dev |
- Feature branches are cut from
qa
. - Once the feature branch is ready to be merged, open a pull request of the branch into qa.
Merging feature_branch
=> qa
automatically deploys to the qa environment.
Merging qa
=> production
automatically deploys to the production environment.
After a release, please backmerge production to qa with a PR.