CI : Deployment
This commit is contained in:
@@ -18,6 +18,7 @@ import {
|
||||
safeJsonParse,
|
||||
} from '@stream-control/shared';
|
||||
import { loadConfig, persistIdentity, type AgentConfig } from './config.ts';
|
||||
import { runDiagnostics } from './doctor.ts';
|
||||
import { ObsController } from './obs.ts';
|
||||
import { StreamWatcher } from './watcher.ts';
|
||||
import { cpuUsagePercent, diskUsage, memoryUsage } from './system.ts';
|
||||
@@ -256,4 +257,10 @@ process.on('unhandledRejection', (reason) => {
|
||||
});
|
||||
|
||||
console.log(`stream-control agent v${AGENT_VERSION} — ${config.name} (${process.platform})`);
|
||||
connect();
|
||||
|
||||
if (process.argv.includes('--check')) {
|
||||
// Diagnostic seul : rien n'est démarré, aucune connexion n'est maintenue.
|
||||
runDiagnostics(config).then((code) => process.exit(code));
|
||||
} else {
|
||||
connect();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user