Commit 049fd53
Fix Kubernetes DATABASE_URL and add hardcoded POSTGRES_USER
## Database Connection Fix
- Remove shell variable expansion from Helm deployment template
- Update database.py to construct DATABASE_URL from individual environment variables
- Add POSTGRES_HOST and POSTGRES_PORT as separate environment variables
- Add hardcoded POSTGRES_USER to GitHub Actions workflow at top level
## Technical Details
- Kubernetes doesn't expand shell variables like $(POSTGRES_USER) in env values
- Application now constructs connection string safely from individual components
- POSTGRES_USER hardcoded as 'life_as_code_user' in CI/CD workflow
- Maintains backward compatibility with existing DATABASE_URL if provided
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 108a0ab commit 049fd53
2 files changed
+29
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
23 | 42 | | |
24 | | - | |
| 43 | + | |
25 | 44 | | |
26 | 45 | | |
27 | 46 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
| 65 | + | |
66 | 66 | | |
67 | | - | |
68 | | - | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
69 | 71 | | |
70 | | - | |
71 | | - | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
72 | 76 | | |
73 | 77 | | |
74 | 78 | | |
| |||
0 commit comments