|
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
Without MustInit(), viper.AutomaticEnv() is never called, so Viper cannot read environment variables injected by K8s secrets (envFrom). This caused DATABASE_URL to always appear empty in deployed services, forcing them into standalone/in-memory mode even when a database was provisioned. os.Getenv() calls like JWT_SECRET worked fine (direct syscall). Viper-backed reads like DATABASE_URL did not (require AutomaticEnv). Added pkgconfig.MustInit() call at the top of main() in both the service component template and the full-monorepo example-api. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| templates | ||
| components.go | ||
| provider_test.go | ||
| provider.go | ||