-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnotes
More file actions
27 lines (13 loc) · 657 Bytes
/
notes
File metadata and controls
27 lines (13 loc) · 657 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
-- zaloguj się jako postgres (domyślny superuser)
psql -U postgres -d postgres
docker compose down -v - usuniecie volumena
docker compose up --build - stworzenie wolumenow
docker exec -it db psql -U admin -d mma_db - z terminalu lacze sie do bazy
docker exec -it app alembic revision --autogenerate -m "Initial tables" - odpalanie alembica
docker exec -it app alembic upgrade head
docker exec -it app python app/db/scripts/seed.py
TODO:
ogarnac to annotated
logowanie z tokenem z lifespanem i sprawdzenie uprawnien i expirowanie tokena
kazac copilotowi przeanalizowac wymagania peexa
api lifespan - zawsze sie dopaal kiedy fastappi podnosi