docs(HedgeDoc): Add documentation to debug

This commit is contained in:
Simon 2021-12-28 15:47:17 +01:00
parent 132fb026c5
commit c5b4223bbb
1 changed files with 17 additions and 0 deletions

View File

@ -21,6 +21,23 @@ Lancer le service :
docker-compose up -d
```
## Debug
### Se connecter à la base de données
```shell
. .env
docker exec -it $POSTGRES_CONTAINER_NAME psql $POSTGRES_DB -U $POSTGRES_USER
```
### Traitement des notes vides
```
SELECT count(*) FROM public."Notes" WHERE content = '';
SELECT * FROM public."Notes" WHERE content = '';
DELETE FROM public."Notes" WHERE content = '';
```
## Liens
- [Site officiel][website]