chore(mana-events): move from port 3065 to 3115 — collision with platform mana-media

Platform-Repo (Code/mana/) reserviert 3065 für mana-media; um Doppel-
Belegung zu vermeiden wandert mana-events (Public-RSVP / Event-Sharing)
auf 3115. Neuer Port-Block 311x ist unbenutzt und gehört strukturell
neben mana-mail (3042) bzw. die anderen 30xx Service-Ports.

Berührt jeden harden-coded 3065-Default — Server-Config, Webapp-Config,
SSR-Routes (rsvp/[token], status), Playwright-Webserver-Setup, e2e-Spec.
PUBLIC_MANA_EVENTS_URL in .env.development zieht beide Variablen mit.

PORT_SCHEMA.md trägt jetzt den Wechsel mit Datum + Begründung —
zukünftiges Ich soll nicht raten warum der Port aus der 30xx-Reihe
ausschert.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Till JS 2026-05-06 20:38:46 +02:00
parent 546b94d472
commit 1b579ab0b0
9 changed files with 15 additions and 13 deletions

View file

@ -14,7 +14,7 @@ import postgres from 'postgres';
const DATABASE_URL =
process.env.DATABASE_URL || 'postgresql://mana:devpassword@localhost:5432/mana_platform';
const EVENTS_URL = process.env.PUBLIC_MANA_EVENTS_URL || 'http://localhost:3065';
const EVENTS_URL = process.env.PUBLIC_MANA_EVENTS_URL || 'http://localhost:3115';
const sql = postgres(DATABASE_URL, { max: 2 });

View file

@ -59,11 +59,11 @@ export default defineConfig({
},
{
command: 'cd ../../../../services/mana-events && bun run src/index.ts',
url: 'http://localhost:3065/health',
url: 'http://localhost:3115/health',
reuseExistingServer: true,
timeout: 60_000,
env: {
PORT: '3065',
PORT: '3115',
DATABASE_URL:
process.env.DATABASE_URL ||
'postgresql://mana:devpassword@localhost:5432/mana_platform',

View file

@ -42,9 +42,9 @@ export function getManaEventsUrl(): string {
if (browser && typeof window !== 'undefined') {
const injected = (window as unknown as { __PUBLIC_MANA_EVENTS_URL__?: string })
.__PUBLIC_MANA_EVENTS_URL__;
return injected || 'http://localhost:3065';
return injected || 'http://localhost:3115';
}
return process.env.PUBLIC_MANA_EVENTS_URL || 'http://localhost:3065';
return process.env.PUBLIC_MANA_EVENTS_URL || 'http://localhost:3115';
}
/**

View file

@ -10,7 +10,7 @@ import type { PageServerLoad } from './$types';
const EVENTS_URL =
process.env.PUBLIC_MANA_EVENTS_URL_CLIENT ||
process.env.PUBLIC_MANA_EVENTS_URL ||
'http://localhost:3065';
'http://localhost:3115';
type Lang = 'de' | 'en' | 'it' | 'fr' | 'es';

View file

@ -19,7 +19,7 @@ const SERVICES = [
{ name: 'Media', url: process.env.PUBLIC_MANA_MEDIA_URL || 'http://localhost:3011' },
{ name: 'LLM', url: process.env.PUBLIC_MANA_LLM_URL || 'http://localhost:3025' },
{ name: 'Geocoding', url: process.env.PUBLIC_MANA_GEOCODING_URL || 'http://localhost:3018' },
{ name: 'Events', url: process.env.PUBLIC_MANA_EVENTS_URL || 'http://localhost:3065' },
{ name: 'Events', url: process.env.PUBLIC_MANA_EVENTS_URL || 'http://localhost:3115' },
];
async function checkService(service: { name: string; url: string }): Promise<ServiceStatus> {