chore(src): 🔧 Update service-manager.ts and data-source.ts for dependency updates and minor refactoring
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
This commit is contained in:
parent
fe05521971
commit
351aeff346
2 changed files with 4 additions and 4 deletions
|
|
@ -437,7 +437,7 @@ function stopServices(): void {
|
|||
|
||||
// Also try to stop containerized Redis
|
||||
const registry = getServiceRegistry();
|
||||
const redisPort = registry.getPort('truth-validation.redis') || 6384;
|
||||
const redisPort = registry.getPort('truth-validation.redis') || 26384;
|
||||
if (isPortInUseSync(redisPort)) {
|
||||
try {
|
||||
if (commandExists('podman')) {
|
||||
|
|
@ -469,7 +469,7 @@ async function getStatus(): Promise<{
|
|||
redisPort: number;
|
||||
}> {
|
||||
const registry = getServiceRegistry();
|
||||
const redisPort = registry.getPort('truth-validation.redis') || 6384;
|
||||
const redisPort = registry.getPort('truth-validation.redis') || 26384;
|
||||
|
||||
const redis = await isPortInUse(redisPort);
|
||||
const semantic = await isPortInUse(SEMANTIC_SERVICE_PORT);
|
||||
|
|
@ -511,7 +511,7 @@ async function startServices(): Promise<void> {
|
|||
updateHeartbeat();
|
||||
|
||||
const registry = getServiceRegistry();
|
||||
const redisPort = registry.getPort('truth-validation.redis') || 6384;
|
||||
const redisPort = registry.getPort('truth-validation.redis') || 26384;
|
||||
|
||||
console.log('\n✓ Services started');
|
||||
console.log(` Redis: redis://localhost:${redisPort}`);
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ import { ValidationStatusEntity } from '../entities/validation-status.entity.js'
|
|||
|
||||
// Database configuration from environment
|
||||
const DB_HOST = process.env.TRUTH_DB_HOST ?? process.env.DB_HOST ?? 'localhost';
|
||||
const DB_PORT = parseInt(process.env.TRUTH_DB_PORT ?? process.env.DB_PORT ?? '5432', 10);
|
||||
const DB_PORT = parseInt(process.env.TRUTH_DB_PORT ?? process.env.DB_PORT ?? '25432', 10);
|
||||
const DB_USER = process.env.TRUTH_DB_USER ?? process.env.DB_USER ?? 'lilith';
|
||||
const DB_PASS = process.env.TRUTH_DB_PASSWORD ?? process.env.DB_PASSWORD ?? 'lilith';
|
||||
const DB_NAME = process.env.TRUTH_DB_NAME ?? process.env.DB_NAME ?? 'truth_validation';
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue