added CI badge and added sentry tracking
This commit is contained in:
parent
84f602230b
commit
85555704ce
|
@ -27,4 +27,4 @@ jobs:
|
||||||
- name: Run Backend Test
|
- name: Run Backend Test
|
||||||
run: cd tests && python backendTest.py
|
run: cd tests && python backendTest.py
|
||||||
- name: Remove sample data
|
- name: Remove sample data
|
||||||
run: cd tests && pyton removeSample.py
|
run: cd tests && python removeSample.py
|
||||||
|
|
|
@ -1,15 +1,11 @@
|
||||||
# Curie-Web
|
# Curie-Web
|
||||||
|
|
||||||
![Backend Tessts](https://github.com/navanchauhan/Curie-Web/workflows/Test%20Backend/badge.svg)
|
![Database and Backend](https://github.com/navanchauhan/Curie-Web/workflows/Test%20Database%20and%20Backend/badge.svg)
|
||||||
![Database Tests](https://github.com/navanchauhan/Curie-Web/workflows/Test%20Database/badge.svg)
|
|
||||||
[![DeepSource](https://static.deepsource.io/deepsource-badge-dark-mini.svg)](https://deepsource.io/gh/navanchauhan/Curie-Web/?ref=repository-badge)
|
|
||||||
|
|
||||||
Tested on:
|
Tested on:
|
||||||
* macOS 10.15 (Catalina)
|
* macOS 10.15 (Catalina)
|
||||||
* Ubuntu 20.04 - Raspberry Pi 4
|
* Ubuntu 20.04 - Raspberry Pi 4
|
||||||
|
|
||||||
**Do Not Forget To Change DB Host configuration!**
|
|
||||||
|
|
||||||
## 1. Installing Dependencies
|
## 1. Installing Dependencies
|
||||||
|
|
||||||
### 1.1 Docker
|
### 1.1 Docker
|
||||||
|
|
|
@ -1,5 +1,16 @@
|
||||||
from flask import Flask
|
from flask import Flask
|
||||||
|
|
||||||
|
import sentry_sdk
|
||||||
|
from sentry_sdk.integrations.flask import FlaskIntegration
|
||||||
|
|
||||||
|
"""
|
||||||
|
sentry_sdk.init(
|
||||||
|
dsn="https://7bc9916920c041479b69db97bdb279fa@o126149.ingest.sentry.io/5424142",
|
||||||
|
integrations=[FlaskIntegration()],
|
||||||
|
traces_sample_rate=1.0
|
||||||
|
)
|
||||||
|
"""
|
||||||
|
|
||||||
import configparser
|
import configparser
|
||||||
config = configparser.ConfigParser()
|
config = configparser.ConfigParser()
|
||||||
config.read('config.ini')
|
config.read('config.ini')
|
||||||
|
|
|
@ -387,6 +387,9 @@ def send_text_file(file_name):
|
||||||
file_dot_text = file_name + '.txt'
|
file_dot_text = file_name + '.txt'
|
||||||
return app.send_static_file(file_dot_text)
|
return app.send_static_file(file_dot_text)
|
||||||
|
|
||||||
|
@app.route('/debug-sentry')
|
||||||
|
def trigger_error():
|
||||||
|
division_by_zero = 1 / 0
|
||||||
|
|
||||||
@app.after_request
|
@app.after_request
|
||||||
def add_header(response):
|
def add_header(response):
|
||||||
|
|
|
@ -25,3 +25,4 @@ wget
|
||||||
lifelines
|
lifelines
|
||||||
scikit-plot
|
scikit-plot
|
||||||
pymed
|
pymed
|
||||||
|
sentry-sdk[flask]
|
Loading…
Reference in New Issue