Improve application startup process and fix potential database issues

Refactors Dockerfile and entrypoint script for enhanced reliability, debugging, and single database migration.

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/5d315300-98fa-429a-abb0-4fdce6a2e3c9.jpg
This commit is contained in:
michaelschal committed 2025-07-13 12:02:30 +00:00
1 parent 037e7e2e49
commit 39cc269d29
4 files changed
+152 -17

No files matched your search

@@ -0,0 +1,132 @@
o 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
🎯 Starting RegisFlow application...
🚀 RegisFlow Production Startup
Database URL: postgresql://regisflow:RegisFl...
⏳ Waiting for PostgreSQL...
Database URL: postgresql://regisflow:RegisFlow2024!PostgreSQL@regisflow-db:5432/regisflow
Connecting to: regisflow-db:5432 as regisflow
✅ PostgreSQL is ready!
✅ PostgreSQL is ready!
🔄 Running database migrations...
> 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...
[i] No changes detected
🎯 Starting RegisFlow application...
🚀 RegisFlow Production Startup
Database URL: postgresql://regisflow:RegisFl...
⏳ Waiting for PostgreSQL...
Database URL: postgresql://regisflow:RegisFlow2024!PostgreSQL@regisflow-db:5432/regisflow
Connecting to: regisflow-db:5432 as regisflow
✅ PostgreSQL is ready!
✅ PostgreSQL is ready!
🔄 Running database migrations...
> 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...
[i] No changes detected
🎯 Starting RegisFlow application...
🚀 RegisFlow Production Startup
Database URL: postgresql://regisflow:RegisFl...
⏳ Waiting for PostgreSQL...
Database URL: postgresql://regisflow:RegisFlow2024!PostgreSQL@regisflow-db:5432/regisflow
Connecting to: regisflow-db:5432 as regisflow
✅ PostgreSQL is ready!
✅ PostgreSQL is ready!
🔄 Running database migrations...
> 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
🎯 Starting RegisFlow application...