fix: remove stale port references from monitoring, docs, and AI.dev skills

This commit is contained in:
saravanakumardb1 2026-02-14 21:48:21 -08:00
parent d436f77be4
commit 81609e9358
6 changed files with 4 additions and 25 deletions

View File

@ -222,7 +222,7 @@ src/app/
import { createApiClient } from '@bytelyst/api-client';
const api = createApiClient({
baseUrl: process.env.BILLING_API_URL || 'http://localhost:4002',
baseUrl: process.env.PLATFORM_SERVICE_URL || 'http://localhost:4003',
getToken: () => localStorage.getItem('token') || undefined,
});

View File

@ -38,10 +38,7 @@ Quickly locate which service is affected:
```bash
# Check all services at once
curl -s http://localhost:8000/health && \
curl -s http://localhost:4001/health && \
curl -s http://localhost:4002/health && \
curl -s http://localhost:4003/health && \
curl -s http://localhost:4004/health
curl -s http://localhost:4003/health
```
### 3. Examine Logs
@ -138,7 +135,7 @@ curl -s http://localhost:4003/api/auth/me -H "Authorization: Bearer <token>"
# Check if dependent services are running
docker compose ps
# Verify service communication
curl -s http://localhost:4002/health | jq . # billing depends on platform
curl -s http://localhost:4003/health | jq . # consolidated platform service
```
## Notes

View File

@ -34,12 +34,9 @@ cd $HOME/code/mygh/learning_voice_ai_agent
| Service | URL | Log File | Process | Port |
| -------------------------- | --------------------- | ----------------------------- | ------- | ---- |
| Backend API (FastAPI) | http://localhost:8000 | `.logs/backend.log` | Python | 8000 |
| Growth Service (Fastify) | http://localhost:4001 | `.logs/growth-service.log` | Node.js | 4001 |
| Billing Service (Fastify) | http://localhost:4002 | `.logs/billing-service.log` | Node.js | 4002 |
| Platform Service (Fastify) | http://localhost:4003 | `.logs/platform-service.log` | Node.js | 4003 |
| Admin Dashboard | http://localhost:3001 | `.logs/admin-dashboard.log` | Next.js | 3001 |
| User Dashboard | http://localhost:3002 | `.logs/user-dashboard.log` | Next.js | 3002 |
| Tracker Service (Fastify) | http://localhost:4004 | `.logs/tracker-service.log` | Node.js | 4004 |
| Tracker Dashboard | http://localhost:3003 | `.logs/tracker-dashboard.log` | Next.js | 3003 |
## Health Check Commands
@ -47,10 +44,7 @@ cd $HOME/code/mygh/learning_voice_ai_agent
```bash
# Quick health check for all services
curl -s http://127.0.0.1:8000/health && echo " ✓ Backend"
curl -s http://127.0.0.1:4001/health && echo " ✓ Growth"
curl -s http://127.0.0.1:4002/health && echo " ✓ Billing"
curl -s http://127.0.0.1:4003/health && echo " ✓ Platform"
curl -s http://127.0.0.1:4004/health && echo " ✓ Tracker"
# Check dashboards (HTTP status codes)
curl -s -o /dev/null -w "%{http_code}" http://127.0.0.1:3001 && echo " ✓ Admin Dashboard"

View File

@ -131,7 +131,7 @@ Create `src/lib/billing-client.ts` (example):
import { createApiClient } from '@bytelyst/api-client';
const billingApi = createApiClient({
baseUrl: process.env.BILLING_SERVICE_URL || 'http://localhost:4002',
baseUrl: process.env.PLATFORM_SERVICE_URL || 'http://localhost:4003',
getToken: () => {
// Return the current user's JWT token
return localStorage.getItem('access_token');

View File

@ -25,16 +25,6 @@ export interface HealthReport {
*/
export const DEFAULT_SERVICES: ServiceTarget[] = [
{ name: 'Backend API', url: process.env.BACKEND_URL || 'http://localhost:8000', path: '/health' },
{
name: 'Growth Service',
url: process.env.GROWTH_SERVICE_URL || 'http://localhost:4001',
path: '/health',
},
{
name: 'Billing Service',
url: process.env.BILLING_SERVICE_URL || 'http://localhost:4002',
path: '/health',
},
{
name: 'Platform Service',
url: process.env.PLATFORM_SERVICE_URL || 'http://localhost:4003',

View File

@ -11,8 +11,6 @@
*
* Environment:
* BACKEND_URL (default: http://localhost:8000)
* GROWTH_SERVICE_URL (default: http://localhost:4001)
* BILLING_SERVICE_URL (default: http://localhost:4002)
* PLATFORM_SERVICE_URL (default: http://localhost:4003)
* ADMIN_DASHBOARD_URL (default: http://localhost:3001)
* USER_DASHBOARD_URL (default: http://localhost:3002)