From 6bea56e5f346a14e80f91c2decbd18bef6c35c9a Mon Sep 17 00:00:00 2001 From: Adrian Lyjak Date: Thu, 21 Aug 2025 18:38:23 -0400 Subject: [PATCH] fix port issues --- pyproject.toml.jinja | 2 +- test-proj/pyproject.toml | 2 +- test-proj/ui/vite.config.ts | 7 ++----- ui/vite.config.ts | 7 ++----- 4 files changed, 6 insertions(+), 12 deletions(-) diff --git a/pyproject.toml.jinja b/pyproject.toml.jinja index dc026b3..296c4da 100644 --- a/pyproject.toml.jinja +++ b/pyproject.toml.jinja @@ -23,7 +23,7 @@ dev = [ "ty>=0.0.1a16", "pytest>=8.4.1", "hatch>=1.14.1", - "llamactl>=0.3.0a6" + "llamactl>=0.3.0a9" ] [build-system] diff --git a/test-proj/pyproject.toml b/test-proj/pyproject.toml index af78c8d..653593d 100644 --- a/test-proj/pyproject.toml +++ b/test-proj/pyproject.toml @@ -23,7 +23,7 @@ dev = [ "ty>=0.0.1a16", "pytest>=8.4.1", "hatch>=1.14.1", - "llamactl>=0.3.0a6" + "llamactl>=0.3.0a9" ] [build-system] diff --git a/test-proj/ui/vite.config.ts b/test-proj/ui/vite.config.ts index 43692ae..68bdd0b 100644 --- a/test-proj/ui/vite.config.ts +++ b/test-proj/ui/vite.config.ts @@ -7,7 +7,7 @@ export default defineConfig(({}) => { const deploymentId = process.env.LLAMA_DEPLOY_DEPLOYMENT_URL_ID; const basePath = process.env.LLAMA_DEPLOY_DEPLOYMENT_BASE_PATH; const projectId = process.env.LLAMA_DEPLOY_PROJECT_ID; - + const port = process.env.PORT ? Number(process.env.PORT) : 3000; return { plugins: [react()], resolve: { @@ -16,11 +16,8 @@ export default defineConfig(({}) => { }, }, server: { - port: 3000, + port: port, host: true, - hmr: { - port: 3000, - }, }, build: { outDir: "dist", diff --git a/ui/vite.config.ts b/ui/vite.config.ts index 43692ae..68bdd0b 100644 --- a/ui/vite.config.ts +++ b/ui/vite.config.ts @@ -7,7 +7,7 @@ export default defineConfig(({}) => { const deploymentId = process.env.LLAMA_DEPLOY_DEPLOYMENT_URL_ID; const basePath = process.env.LLAMA_DEPLOY_DEPLOYMENT_BASE_PATH; const projectId = process.env.LLAMA_DEPLOY_PROJECT_ID; - + const port = process.env.PORT ? Number(process.env.PORT) : 3000; return { plugins: [react()], resolve: { @@ -16,11 +16,8 @@ export default defineConfig(({}) => { }, }, server: { - port: 3000, + port: port, host: true, - hmr: { - port: 3000, - }, }, build: { outDir: "dist",