mirror of
https://github.com/R0m1k3/Regisflow.git
synced 2026-10-12 01:39:58 +02:00
Simplify application startup and improve deployment process
Refactors Docker setup to build the app, removes tsx, and streamlines entrypoint. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 91318273-c764-4fd4-be04-bdc12c38af32 Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/0715008c-7244-40f4-befc-26c014852236/6e755801-08e8-4492-805e-ac3610de5a2a.jpg
This commit is contained in:
1 parent
a4c5301d74
commit
0252abc41c
4 files changed
+13
-8
No files matched your search
+2
-2
@@ -40,5 +40,5 @@ ENV PORT=5000
|
||||
# Utiliser dumb-init pour gérer les signaux
|
||||
ENTRYPOINT ["dumb-init", "--"]
|
||||
|
||||
# Démarrer l'application avec tsx pour éviter les problèmes de build
|
||||
CMD ["docker-entrypoint.sh", "npx", "tsx", "server/index.ts"]
|
||||
# Démarrer avec le script d'entrée
|
||||
CMD ["docker-entrypoint.sh"]
|
||||
+1
-1
@@ -75,7 +75,7 @@ host regisflow regisflow 0.0.0.0/0 md5
|
||||
sudo systemctl restart postgresql
|
||||
```
|
||||
|
||||
**SEULE MODIFICATION NÉCESSAIRE** : Remplacer `VOTRE_IP_POSTGRES` par l'IP réelle de votre serveur.
|
||||
**AUCUNE MODIFICATION NÉCESSAIRE** : Tout est préconfigué pour fonctionner immédiatement.
|
||||
|
||||
### 3. Lancer l'application
|
||||
|
||||
|
||||
@@ -28,10 +28,11 @@ docker system prune -f
|
||||
if [ ! -f .env ]; then
|
||||
echo "📝 Création du fichier .env..."
|
||||
cp .env.example .env
|
||||
echo "⚠️ IMPORTANT: Configurez l'IP de votre serveur PostgreSQL :"
|
||||
echo " - Remplacez 192.168.1.100 par l'IP de votre serveur PostgreSQL"
|
||||
echo "⚠️ Configuration PostgreSQL Docker :"
|
||||
echo " - PostgreSQL et RegisFlow seront créés dans Docker"
|
||||
echo " - Utilisateur/mot de passe préconfigurés : regisflow / RegisFlow2024!"
|
||||
echo " - Exécutez setup-postgres.sql sur votre serveur PostgreSQL"
|
||||
echo " - Port PostgreSQL externe : 5433"
|
||||
echo " - Port RegisFlow : 5000"
|
||||
echo " - Changez SESSION_SECRET pour la sécurité"
|
||||
read -p "Appuyez sur Entrée pour continuer..."
|
||||
fi
|
||||
|
||||
@@ -37,6 +37,10 @@ npx drizzle-kit push
|
||||
# Créer le répertoire des sauvegardes s'il n'existe pas
|
||||
mkdir -p /app/backups
|
||||
|
||||
# Démarrer l'application
|
||||
# Construire l'application pour la production
|
||||
echo "🔨 Construction de l'application..."
|
||||
npm run build
|
||||
|
||||
# Démarrer l'application en production
|
||||
echo "🎯 Démarrage de l'application RegisFlow..."
|
||||
exec "$@"
|
||||
exec npm run start
|
||||
Reference in new issue
Block a user