Ajouter Populate_DB

This commit is contained in:
2025-09-27 13:09:26 +02:00
parent 391c1d11b2
commit 9d0b0e8593

12
Populate_DB Normal file
View File

@@ -0,0 +1,12 @@
3. Initialisation de la base (migrations Prisma)
Cloner le repo AFFiNE :
git clone https://github.com/toeverything/AFFiNE.git ~/AFFiNE
Puis lancer les migrations :
docker run -it --rm --network=affine_default
-e DATABASE_URL="postgres://affine_usr:R8v%232kP9sTq4%21Lm@affine_db:5432/affine?sslmode=disable"
-v ~/AFFiNE:/work
-w /work/packages/backend/server node:20-alpine sh -c "npm install -g prisma@6 && prisma migrate
deploy --schema=./schema.prisma"