From 941557cba8dcf2aae9b08e2f61420437f5603b0c Mon Sep 17 00:00:00 2001 From: nsfisis Date: Tue, 4 Mar 2025 21:22:14 +0900 Subject: change port --- compose.local.yaml | 2 +- compose.prod.yaml | 2 +- frontend/app/.client/audio/SoundEffect.ts | 2 +- frontend/app/.server/api/client.ts | 2 +- frontend/app/components/GolfPlayApp.client.tsx | 2 +- frontend/app/components/GolfWatchApp.client.tsx | 2 +- frontend/app/components/UserIcon.tsx | 2 +- frontend/app/routes/dashboard.tsx | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/compose.local.yaml b/compose.local.yaml index af48cf4..def7c4a 100644 --- a/compose.local.yaml +++ b/compose.local.yaml @@ -3,7 +3,7 @@ services: build: context: ./backend ports: - - '127.0.0.1:8002:80' + - '127.0.0.1:8003:80' volumes: - files-data:/data/files:rw depends_on: diff --git a/compose.prod.yaml b/compose.prod.yaml index a3b840c..6738080 100644 --- a/compose.prod.yaml +++ b/compose.prod.yaml @@ -2,7 +2,7 @@ services: reverse-proxy: image: nginx:1.27 ports: - - '127.0.0.1:8002:80' + - '127.0.0.1:8003:80' volumes: - ./nginx.conf:/etc/nginx/nginx.conf:ro - files-data:/var/www/files:ro diff --git a/frontend/app/.client/audio/SoundEffect.ts b/frontend/app/.client/audio/SoundEffect.ts index 7e40da6..fb003fa 100644 --- a/frontend/app/.client/audio/SoundEffect.ts +++ b/frontend/app/.client/audio/SoundEffect.ts @@ -14,7 +14,7 @@ export type SoundEffect = const BASE_URL = process.env.NODE_ENV === "development" - ? `http://localhost:8002/iosdc-japan/2024/code-battle/files/audio` + ? `http://localhost:8003/iosdc-japan/2024/code-battle/files/audio` : `/iosdc-japan/2024/code-battle/files/audio`; export function getFileUrl(soundEffect: SoundEffect): string { diff --git a/frontend/app/.server/api/client.ts b/frontend/app/.server/api/client.ts index 1c96b7b..d69b617 100644 --- a/frontend/app/.server/api/client.ts +++ b/frontend/app/.server/api/client.ts @@ -4,7 +4,7 @@ import type { paths } from "./schema"; const apiClient = createClient({ baseUrl: process.env.NODE_ENV === "development" - ? "http://localhost:8002/iosdc-japan/2024/code-battle/api/" + ? "http://localhost:8003/iosdc-japan/2024/code-battle/api/" : "http://api-server/iosdc-japan/2024/code-battle/api/", }); diff --git a/frontend/app/components/GolfPlayApp.client.tsx b/frontend/app/components/GolfPlayApp.client.tsx index 4bd464b..48c2c89 100644 --- a/frontend/app/components/GolfPlayApp.client.tsx +++ b/frontend/app/components/GolfPlayApp.client.tsx @@ -42,7 +42,7 @@ export default function GolfPlayApp({ }: Props) { const socketUrl = process.env.NODE_ENV === "development" - ? `ws://localhost:8002/iosdc-japan/2024/code-battle/sock/golf/${game.game_id}/play?token=${sockToken}` + ? `ws://localhost:8003/iosdc-japan/2024/code-battle/sock/golf/${game.game_id}/play?token=${sockToken}` : `wss://t.nil.ninja/iosdc-japan/2024/code-battle/sock/golf/${game.game_id}/play?token=${sockToken}`; const gameStateKind = useAtomValue(gameStateKindAtom); diff --git a/frontend/app/components/GolfWatchApp.client.tsx b/frontend/app/components/GolfWatchApp.client.tsx index f02bfb9..72db9e5 100644 --- a/frontend/app/components/GolfWatchApp.client.tsx +++ b/frontend/app/components/GolfWatchApp.client.tsx @@ -33,7 +33,7 @@ export type Props = { export default function GolfWatchApp({ game, sockToken }: Props) { const socketUrl = process.env.NODE_ENV === "development" - ? `ws://localhost:8002/iosdc-japan/2024/code-battle/sock/golf/${game.game_id}/watch?token=${sockToken}` + ? `ws://localhost:8003/iosdc-japan/2024/code-battle/sock/golf/${game.game_id}/watch?token=${sockToken}` : `wss://t.nil.ninja/iosdc-japan/2024/code-battle/sock/golf/${game.game_id}/watch?token=${sockToken}`; const gameStateKind = useAtomValue(gameStateKindAtom); diff --git a/frontend/app/components/UserIcon.tsx b/frontend/app/components/UserIcon.tsx index 656c170..a4ee5e6 100644 --- a/frontend/app/components/UserIcon.tsx +++ b/frontend/app/components/UserIcon.tsx @@ -9,7 +9,7 @@ export default function UserIcon({ iconPath, displayName, className }: Props) {