raft-tech / TANF-app

Repo for development of a new TANF Data Reporting System
Other
16 stars 3 forks source link

[WIP] Sentry/Logstash local #3010

Closed raftmsohani closed 6 days ago

raftmsohani commented 1 month ago

Summary of Changes

Provide a brief summary of changes Pull request closes #831_

How to Test

List the steps to test the PR These steps are generic, please adjust as necessary.

cd tdrs-frontend && docker-compose -f docker-compose.yml -f docker-compose.local.yml up -d
cd tdrs-backend && docker-compose -f docker-compose.yml -f docker-compose.local.yml up -d 
  1. Open http://localhost:3000/ and sign in.
  2. Proceed with functional tests as described herein.
  3. Test steps should be captured in the demo GIF(s) and/or screenshots below.

    Demo GIF(s) and screenshots for testing procedure

Deliverables

More details on how deliverables herein are assessed included here.

Deliverable 1: Accepted Features

Checklist of ACs:

Deliverable 2: Tested Code

Deliverable 3: Properly Styled Code

Deliverable 4: Accessible

Deliverable 5: Deployed

Deliverable 6: Documented

Deliverable 7: Secure

Deliverable 8: User Research

Research product(s) clearly articulate(s):

raftmsohani commented 1 month ago

Follow these steps:

  1. Install Sentry from this repo and follow the steps: https://github.com/getsentry/self-hosted/blob/master/README.md
  2. You will need to create a user by doing: docker-compose run --rm web createuser
  3. Add your server Ip to sentry/sentry.conf.py to CSRF_TRUSTED_ORIGINS
  4. Find you dsn by following these steps and change it in django app: https://docs.sentry.io/concepts/key-terms/dsn-explainer/#what-the-dsn-does and https://docs.sentry.io/platforms/python/integrations/logging/#configure