refactor: Add environment variable support to API server configuration and fix build path

- Add getEnv and getEnvInt helper functions for reading environment variables with defaults
- Update all configuration fields to use environment variables (DB_HOST, REDIS_HOST, API_PORT, etc.)
- Change CI build command from ./cmd/server.go to ./cmd/ directory path
This commit is contained in:
nutcas3
2026-04-26 00:15:45 +03:00
parent 302b761916
commit b734ea7d3a
2 changed files with 42 additions and 24 deletions
+1 -1
View File
@@ -65,7 +65,7 @@ jobs:
- name: Build API server
working-directory: apps/api-server
run: go build -o bin/api-server ./cmd/server.go
run: go build -o bin/api-server ./cmd/
web-dashboard-test:
name: Web Dashboard Tests