Add runner ci (test)

This commit is contained in:
2026-03-10 23:56:53 +01:00
parent c3fbd7d4fe
commit f5bf18b739
21 changed files with 1372 additions and 39 deletions

View File

@@ -4,11 +4,15 @@ import path from 'path';
import fs from 'fs';
import { createServer as createHttpServer } from 'http';
import { createServer as createHttpsServer } from 'https';
import {
resolveCertificateDirectory,
resolveEnvFilePath
} from './runtime-paths';
// Load .env from project root (one level up from server/)
dotenv.config({ path: path.resolve(__dirname, '..', '..', '.env') });
dotenv.config({ path: resolveEnvFilePath() });
import { initDatabase } from './db';
import { initDatabase } from './db/database';
import { deleteStaleJoinRequests } from './cqrs';
import { createApp } from './app';
import {
@@ -23,7 +27,7 @@ const PORT = process.env.PORT || 3001;
function buildServer(app: ReturnType<typeof createApp>) {
if (USE_SSL) {
const certDir = path.resolve(__dirname, '..', '..', '.certs');
const certDir = resolveCertificateDirectory();
const certFile = path.join(certDir, 'localhost.crt');
const keyFile = path.join(certDir, 'localhost.key');