Ruby version - 3.0.4
`bundle` to manage Ruby gems
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>>`.
bin/rails db:create
bin/rails db:seed
bin/rspec
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 |
- AWS_ACCESS_KEY_ID
- AWS_REGION
- AWS_SECRET_ACCESS_KEY
- DATABASE_URL
- RAILS_ENV
- RAILS_LOG_TO_STDOUT
- RAILS_MASTER_KEY
- TWILIO_ACCOUNT_SID
- TWILIO_MESSAGING_SERVICE_SID
- TWILIO_AUTH_TOKEN
- 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