- Github issue created
- Create feature branch based off of the latest from the
master
branch - Local development and testing
- Create pull request into
staging
branch. Add reviewers and comments. (triggers circleci) - Reviewers will then approve the PR, provide feedback, and then merge into staging
- Reviewer approves the PR and merges into the
staging
branch (triggers a staging environment deployment) - Reviewer creates a new PR set to merge into
master
. Reviewer adds testers to PR. - Testers verify PR/issue in the staging environment.
- All parties approve PR. Reviewer merges and closes PR into master and triggers a production deployment.
- Smoke test
- Ruby 2.2.5 (use rbenv or RVM)
- with
bundler
gem installed i.e.gem install bundler
- with
docker
anddocker-compose
- Clone repo:
git clone [email protected]:CrisisCleanup/crisiscleanup.git
cd crisiscleanup
docker-compose up -d
(docker should be installed and running)- API keys and environment variables
- Google Maps API key - The map feature of CCU uses the Google Maps API. Currently, the referrer URL settings do not allow for
localhost
to access the API with that key. Replace the API key value in this file with your own API key:app/assets/javascripts/plugins/google.js
- AWS keys - Several features of CCU use the AWS S3 and SNS services. The sample
.env.development.sample
file should be copied and name to.env.development
personal AWS API keys entered.
- Google Maps API key - The map feature of CCU uses the Google Maps API. Currently, the referrer URL settings do not allow for
- Data Migration -
- Using seed data:
bin/rake db:setup
(creates and migrates)
- Using a DB dumpfile:
bin/rake db:create
pg_restore --verbose --clean --no-acl --no-owner -h localhost -U crisiscleanup -d crisiscleanup_development dev.dump
(PW: crisiscleanup)
- Using seed data:
- Server Start
bin/rails server
- Testing
RAILS_ENV=test bundle exec rspec
- Cleanup
docker-compose down
(will destroy the database)