mirror of
https://github.com/R0m1k3/Regisflow.git
synced 2026-10-21 06:08:18 +02:00
Set up database initialization process using SQL scripts and Drizzle ORM
Adds init.sql and init-db.sh for database initialization, and enhances Docker setup. Replit-Commit-Author: Agent Replit-Commit-Session-Id: dec54137-d5a2-4406-8ad4-5f2f9fb110bf Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/0715008c-7244-40f4-befc-26c014852236/438ba2d5-c119-4a74-9474-438eed8b3141.jpg
This commit is contained in:
1 parent
9cc28ddc93
commit
77d77ab658
5 files changed
+357
-4
No files matched your search
+16
-1
@@ -40,9 +40,13 @@ MAX_BACKUP_COUNT=20
|
||||
### 3. Déploiement immédiat
|
||||
|
||||
```bash
|
||||
# Démarrer l'application
|
||||
# Option A: Démarrer avec Docker Compose
|
||||
docker-compose up -d --build
|
||||
|
||||
# Option B: Utiliser le script automatisé
|
||||
chmod +x deploy-production.sh
|
||||
./deploy-production.sh
|
||||
|
||||
# Vérifier le fonctionnement
|
||||
curl http://localhost:5000/health
|
||||
|
||||
@@ -50,6 +54,17 @@ curl http://localhost:5000/health
|
||||
docker-compose logs -f regisflow
|
||||
```
|
||||
|
||||
### 3.1 Initialisation manuelle de la base (si nécessaire)
|
||||
|
||||
```bash
|
||||
# Si les tables ne se créent pas automatiquement
|
||||
chmod +x init-db.sh
|
||||
./init-db.sh
|
||||
|
||||
# Ou avec une DATABASE_URL spécifique
|
||||
./init-db.sh "postgresql://regisflow:password@localhost:5433/regisflow"
|
||||
```
|
||||
|
||||
### 4. Accès initial
|
||||
|
||||
- **URL** : http://votre-serveur:5000
|
||||
|
||||
Reference in new issue
Block a user