mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-14 17:41:09 +02:00
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:
parent
546b94d472
commit
1b579ab0b0
9 changed files with 15 additions and 13 deletions
|
|
@ -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 });
|
||||
|
||||
|
|
|
|||
|
|
@ -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',
|
||||
|
|
|
|||
|
|
@ -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';
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -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';
|
||||
|
||||
|
|
|
|||
|
|
@ -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> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue