Skip to content
This repository has been archived by the owner on Sep 12, 2023. It is now read-only.

codeforamerica/notifications

Repository files navigation

README

Development environment

Ruby version - 3.0.4
`bundle` to manage Ruby gems

Rails credentials

We use encrypted credentials per environment with separate RAILS_MASTER_KEYs (which are stored in a shared LastPass folder named "Shared-CT Notifications").
To edit credentials, use `RAILS_MASTER_KEY=<<Value from LastPass specifice to environment>> bin/rails credentials:edit --environment <<environment_name>>`.

Database creation/initialization

bin/rails db:create
bin/rails db:seed

Running tests

bin/rspec

Configuration/Environments

App Database Twilio S3 Instance / Bucket Stack Environment
notifications-staging notifications-staging-db CfA SNIL CfA SNIL / notifications-staging-csvs shared-us-west-1 innovation-lab-staging
notifications-production notifications-production-db CT CfA SNIL / notifications-production-csvs snil-ct-production snil-ct-msg-pilot-prod

Environment variables

  1. AWS_ACCESS_KEY_ID
  2. AWS_REGION
  3. AWS_SECRET_ACCESS_KEY
  4. DATABASE_URL
  5. RAILS_ENV
  6. RAILS_LOG_TO_STDOUT
  7. RAILS_MASTER_KEY
  8. TWILIO_ACCOUNT_SID
  9. TWILIO_MESSAGING_SERVICE_SID
  10. TWILIO_AUTH_TOKEN

Deployment

  • We use Dockerfile Deploy
  • Configure your git remotes for staging and production, e.g., git remote add aptible-production [email protected]:snil-ct-msg-pilot-prod/notifications-production.git.
  • Deploy using git push: git push aptible-production main:master

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages