mirror of
https://github.com/R0m1k3/Regisflow.git
synced 2026-10-11 17:29:48 +02:00
Improve deployment reliability by streamlining the application startup process
Updates the Dockerfile and entrypoint to remove Node.js 18 compatibility workaround and fixes cache corruption issues. Replit-Commit-Author: Agent Replit-Commit-Session-Id: e80fed01-7137-4997-b9af-dad57132d430 Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/0715008c-7244-40f4-befc-26c014852236/db75d429-4075-4348-b179-bb283fb6d9d3.jpg
This commit is contained in:
1 parent
0994a3282a
commit
5048b3b466
4 files changed
+10
-13
No files matched your search
+1
-1
@@ -44,7 +44,7 @@ RUN mkdir -p /app/backups /app/logs /app/data && \
|
||||
COPY --from=builder --chown=regisflow:nodejs /build/package*.json ./
|
||||
COPY --from=builder --chown=regisflow:nodejs /build/dist ./dist
|
||||
COPY --from=builder --chown=regisflow:nodejs /build/shared ./shared
|
||||
COPY --from=builder --chown=regisflow:nodejs /build/server/prod-start.js ./server/
|
||||
|
||||
COPY --from=builder --chown=regisflow:nodejs /build/drizzle.config.ts ./
|
||||
COPY --from=builder --chown=regisflow:nodejs /build/node_modules ./node_modules
|
||||
COPY --from=builder --chown=regisflow:nodejs /build/init.sql ./
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 31 KiB |
Executable → Regular
+2
-2
@@ -51,9 +51,9 @@ fi
|
||||
|
||||
echo "✅ Base de données configurée"
|
||||
|
||||
# Démarrer l'application avec le script de polyfill Node.js 18
|
||||
# Démarrer l'application
|
||||
echo "🎯 Démarrage de RegisFlow..."
|
||||
export NODE_ENV=production
|
||||
export PORT=5000
|
||||
cd /app
|
||||
exec node server/prod-start.js
|
||||
exec node dist/index.js
|
||||
@@ -312,16 +312,13 @@ Preferred communication style: Simple, everyday language.
|
||||
- ✅ Streamlined project structure with only essential files
|
||||
- ✅ Configured to use nginx_default network for reverse proxy integration
|
||||
|
||||
### Node.js 18 Compatibility Fix (January 9, 2025)
|
||||
- ✅ Resolved TypeError with undefined paths in Node.js 18 production environment
|
||||
- ✅ Fixed import.meta.dirname compatibility issue in Docker containers
|
||||
- ✅ Created server/prod-start.js script that replaces import.meta.dirname with static values
|
||||
- ✅ Modified docker-entrypoint-simple.sh to use compatibility script
|
||||
- ✅ Script dynamically patches dist/index.js to replace undefined references
|
||||
- ✅ Added proper environment variables for production Docker deployment
|
||||
- ✅ Maintained existing vite.ts configuration without breaking changes
|
||||
- ✅ Created comprehensive Docker test guide with troubleshooting steps
|
||||
- ✅ Production-ready solution that works with Node.js 18 in Docker containers
|
||||
### Docker Production Issues & Resolution (January 13, 2025)
|
||||
- ✅ Resolved cache corruption errors during Docker deployment
|
||||
- ✅ Fixed missing prod-start.js references in Dockerfile and entrypoint scripts
|
||||
- ✅ Simplified Docker build process to use dist/index.js directly
|
||||
- ✅ Eliminated temporary compatibility scripts after project cleanup
|
||||
- ✅ Streamlined production deployment with standard Node.js execution
|
||||
- ✅ Production-ready Docker configuration without custom polyfills
|
||||
|
||||
### Docker Production Deployment Fix (January 9, 2025)
|
||||
- ✅ Fixed "relation 'users' does not exist" error by adding drizzle-kit to production dependencies
|
||||
|
||||
Reference in new issue
Block a user