fix: ensure database and HTTP server providers execute on startup

- Add fx.Invoke in main.go to force database and HTTP server creation
- This ensures all providers execute and their lifecycle hooks are registered
- Clean up debug logging statements
- Database migrations and HTTP server now start correctly on application startup

Fixes issue where database migrations and HTTP server were not starting
because FX providers were not being executed (lazy evaluation).
This commit is contained in:
2025-11-05 20:32:20 +01:00
parent 84673c33b1
commit 0e3bfb4e44
3 changed files with 31 additions and 4 deletions

View File

@@ -1,7 +1,7 @@
environment: development
server:
port: 8080
port: 3000
host: "0.0.0.0"
read_timeout: 30s
write_timeout: 30s