Skip to content

Commit

Permalink
fix: rename ports vars to uppercase
Browse files Browse the repository at this point in the history
  • Loading branch information
MasterPtato committed Nov 26, 2024
1 parent d2b1b06 commit 7f33d15
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/infra/client/manager/src/actor/setup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -692,7 +692,7 @@ impl Actor {
// Add port env vars and api endpoint
.chain(ports.iter().map(|(label, port)| {
(
format!("PORT_{}", label.replace('-', "_")),
format!("PORT_{}", label.to_uppercase().replace('-', "_")),
port.target.to_string(),
)
}))
Expand Down
2 changes: 1 addition & 1 deletion packages/infra/client/manager/tests/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ console.log(Rivet.metadata);

let server = Deno.serve({
handler,
port: parseInt(Deno.env.get("PORT_main")),
port: parseInt(Deno.env.get("PORT_MAIN")),
});

await server.finished;
Expand Down
2 changes: 1 addition & 1 deletion resources/default-builds/js/test-js-echo/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ console.log(Deno.env.toObject());

let server = Deno.serve({
handler,
port: parseInt(Deno.env.get("PORT_ds_testing2") ?? Deno.env.get("HTTP_PORT")),
port: parseInt(Deno.env.get("PORT_DS_TESTING2") ?? Deno.env.get("HTTP_PORT")),
});

await server.finished;
Expand Down
2 changes: 1 addition & 1 deletion scripts/manual_tests/fixtures/echo_http.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ console.log(Deno.env.toObject());

let server = Deno.serve({
handler,
port: parseInt(Deno.env.get("PORT_ds_http") ?? Deno.env.get("HTTP_PORT")),
port: parseInt(Deno.env.get("PORT_DS_HTTP") ?? Deno.env.get("HTTP_PORT")),
hostname: "0.0.0.0",
});

Expand Down

0 comments on commit 7f33d15

Please sign in to comment.