mirror of
https://github.com/R0m1k3/Regisflow.git
synced 2026-10-21 14:18:17 +02:00
Ensure application connects to the database correctly in Docker environment
Fixes "The server does not support SSL connections" by disabling SSL in DATABASE_URL for local Docker deployments and in server/db.ts. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 4b008663-bd72-492b-b0b6-fa252367e730 Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/0715008c-7244-40f4-befc-26c014852236/4b008663-bd72-492b-b0b6-fa252367e730/QW0MKzv
This commit is contained in:
1 parent
f7972c66da
commit
205e4f03c8
6 files changed
+150
-6
No files matched your search
+120
@@ -0,0 +1,120 @@
|
||||
🔄 Attempting database migration...
|
||||
|
||||
> rest-express@1.0.0 db:push
|
||||
|
||||
> drizzle-kit push
|
||||
|
||||
No config path provided, using default 'drizzle.config.ts'
|
||||
|
||||
Reading config file '/app/drizzle.config.ts'
|
||||
|
||||
Using 'pg' driver for database querying
|
||||
|
||||
[⣷] Pulling schema from database...
|
||||
|
||||
[⣯] Pulling schema from database...
|
||||
|
||||
[⣟] Pulling schema from database...
|
||||
|
||||
[✓] Pulling schema from database...
|
||||
|
||||
[i] No changes detected
|
||||
|
||||
✅ Migration completed
|
||||
|
||||
🌟 Starting RegisFlow application...
|
||||
|
||||
> rest-express@1.0.0 start
|
||||
|
||||
> NODE_ENV=production node dist/index.js
|
||||
|
||||
/app/node_modules/pg-pool/index.js:45
|
||||
|
||||
Error.captureStackTrace(err)
|
||||
|
||||
^
|
||||
|
||||
Error: The server does not support SSL connections
|
||||
|
||||
at /app/node_modules/pg-pool/index.js:45:11
|
||||
|
||||
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
|
||||
|
||||
at async file:///app/node_modules/drizzle-orm/node-postgres/session.js:83:22
|
||||
|
||||
at async DatabaseStorage.getAllUsers (file:///app/dist/index.js:210:12)
|
||||
|
||||
at async DatabaseStorage.initializeDefaults (file:///app/dist/index.js:384:27)
|
||||
|
||||
at async registerRoutes (file:///app/dist/index.js:636:22)
|
||||
|
||||
at async file:///app/dist/index.js:1277:18
|
||||
|
||||
Node.js v20.19.4
|
||||
|
||||
🚀 RegisFlow Production Starting...
|
||||
|
||||
⏳ Waiting for database regisflow-db:5432...
|
||||
|
||||
✅ Database ready
|
||||
|
||||
🔄 Attempting database migration...
|
||||
|
||||
> rest-express@1.0.0 db:push
|
||||
|
||||
> drizzle-kit push
|
||||
|
||||
No config path provided, using default 'drizzle.config.ts'
|
||||
|
||||
Reading config file '/app/drizzle.config.ts'
|
||||
|
||||
Using 'pg' driver for database querying
|
||||
|
||||
[⣷] Pulling schema from database...
|
||||
|
||||
[⣯] Pulling schema from database...
|
||||
|
||||
[⣟] Pulling schema from database...
|
||||
|
||||
[⡿] Pulling schema from database...
|
||||
|
||||
[✓] Pulling schema from database...
|
||||
|
||||
[i] No changes detected
|
||||
|
||||
✅ Migration completed
|
||||
|
||||
🌟 Starting RegisFlow application...
|
||||
|
||||
> rest-express@1.0.0 start
|
||||
|
||||
> NODE_ENV=production node dist/index.js
|
||||
|
||||
/app/node_modules/pg-pool/index.js:45
|
||||
|
||||
Error.captureStackTrace(err)
|
||||
|
||||
^
|
||||
|
||||
Error: The server does not support SSL connections
|
||||
|
||||
at /app/node_modules/pg-pool/index.js:45:11
|
||||
|
||||
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
|
||||
|
||||
at async file:///app/node_modules/drizzle-orm/node-postgres/session.js:83:22
|
||||
|
||||
at async DatabaseStorage.getAllUsers (file:///app/dist/index.js:210:12)
|
||||
|
||||
at async DatabaseStorage.initializeDefaults (file:///app/dist/index.js:384:27)
|
||||
|
||||
at async registerRoutes (file:///app/dist/index.js:636:22)
|
||||
|
||||
at async file:///app/dist/index.js:1277:18
|
||||
|
||||
Node.js v20.19.4
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user