Skip to content

Commit 300448c

Browse files
authored
fix port issues (#20)
1 parent 3f57d65 commit 300448c

File tree

4 files changed

+6
-12
lines changed

4 files changed

+6
-12
lines changed

pyproject.toml.jinja

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ dev = [
2323
"ty>=0.0.1a16",
2424
"pytest>=8.4.1",
2525
"hatch>=1.14.1",
26-
"llamactl>=0.3.0a6"
26+
"llamactl>=0.3.0a9"
2727
]
2828

2929
[build-system]

test-proj/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ dev = [
2323
"ty>=0.0.1a16",
2424
"pytest>=8.4.1",
2525
"hatch>=1.14.1",
26-
"llamactl>=0.3.0a6"
26+
"llamactl>=0.3.0a9"
2727
]
2828

2929
[build-system]

test-proj/ui/vite.config.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export default defineConfig(({}) => {
77
const deploymentId = process.env.LLAMA_DEPLOY_DEPLOYMENT_URL_ID;
88
const basePath = process.env.LLAMA_DEPLOY_DEPLOYMENT_BASE_PATH;
99
const projectId = process.env.LLAMA_DEPLOY_PROJECT_ID;
10-
10+
const port = process.env.PORT ? Number(process.env.PORT) : 3000;
1111
return {
1212
plugins: [react()],
1313
resolve: {
@@ -16,11 +16,8 @@ export default defineConfig(({}) => {
1616
},
1717
},
1818
server: {
19-
port: 3000,
19+
port: port,
2020
host: true,
21-
hmr: {
22-
port: 3000,
23-
},
2421
},
2522
build: {
2623
outDir: "dist",

ui/vite.config.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export default defineConfig(({}) => {
77
const deploymentId = process.env.LLAMA_DEPLOY_DEPLOYMENT_URL_ID;
88
const basePath = process.env.LLAMA_DEPLOY_DEPLOYMENT_BASE_PATH;
99
const projectId = process.env.LLAMA_DEPLOY_PROJECT_ID;
10-
10+
const port = process.env.PORT ? Number(process.env.PORT) : 3000;
1111
return {
1212
plugins: [react()],
1313
resolve: {
@@ -16,11 +16,8 @@ export default defineConfig(({}) => {
1616
},
1717
},
1818
server: {
19-
port: 3000,
19+
port: port,
2020
host: true,
21-
hmr: {
22-
port: 3000,
23-
},
2421
},
2522
build: {
2623
outDir: "dist",

0 commit comments

Comments
 (0)