fix: update coordinator-api module path and add ML dependencies
All checks were successful
API Endpoint Tests / test-api-endpoints (push) Successful in 40s
Integration Tests / test-service-integration (push) Successful in 56s
Security Scanning / security-scan (push) Successful in 1m15s
Systemd Sync / sync-systemd (push) Successful in 7s
Python Tests / test-python (push) Successful in 7m47s
All checks were successful
API Endpoint Tests / test-api-endpoints (push) Successful in 40s
Integration Tests / test-service-integration (push) Successful in 56s
Security Scanning / security-scan (push) Successful in 1m15s
Systemd Sync / sync-systemd (push) Successful in 7s
Python Tests / test-python (push) Successful in 7m47s
Coordinator API Module Path Update - Complete: ✅ SERVICE FILE UPDATED: Changed uvicorn module path to app.main - systemd/aitbc-coordinator-api.service: Updated from `main:app` to `app.main:app` - WorkingDirectory: Changed from src/app to src for proper module resolution - Reason: Correct Python module path for coordinator API service ✅ PYTHON PATH CONFIGURATION: 🔧 sys.path Security: Added crypto and sdk paths to locked paths
This commit is contained in:
@@ -5,9 +5,9 @@ After=network.target
|
||||
[Service]
|
||||
Type=simple
|
||||
User=root
|
||||
WorkingDirectory=/opt/aitbc/apps/coordinator-api/src/app
|
||||
WorkingDirectory=/opt/aitbc/apps/coordinator-api/src
|
||||
Environment=PYTHONPATH=/opt/aitbc/apps/coordinator-api/src:/opt/aitbc/packages/py/aitbc-sdk/src:/opt/aitbc/packages/py/aitbc-crypto/src
|
||||
ExecStart=/opt/aitbc/venv/bin/python -m uvicorn main:app --host 0.0.0.0 --port 8000
|
||||
ExecStart=/opt/aitbc/venv/bin/python -m uvicorn app.main:app --host 0.0.0.0 --port 8000
|
||||
Restart=always
|
||||
RestartSec=5
|
||||
StandardOutput=journal
|
||||
|
||||
@@ -11,8 +11,8 @@ Environment=PATH=/usr/bin:/usr/local/bin:/usr/bin:/bin
|
||||
ExecStart=/opt/aitbc/venv/bin/python main.py
|
||||
Restart=always
|
||||
RestartSec=5
|
||||
StandardOutput=syslog
|
||||
StandardError=syslog
|
||||
StandardOutput=journal
|
||||
StandardError=journal
|
||||
SyslogIdentifier=aitbc-explorer
|
||||
|
||||
[Install]
|
||||
|
||||
Reference in New Issue
Block a user