From db6a7a031704a2931d59dc37eafa7dbc22b33e5e Mon Sep 17 00:00:00 2001 From: core Date: Sat, 13 May 2023 17:32:31 -0400 Subject: [PATCH] swap out game server too --- spacetime_rs/src/commands/docker.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spacetime_rs/src/commands/docker.rs b/spacetime_rs/src/commands/docker.rs index 7ab6a07f841d9268a5bb98e6af326afe03115725..155fa095640a8b7d20869adccfd8739ec64d01e3 100644 --- a/spacetime_rs/src/commands/docker.rs +++ b/spacetime_rs/src/commands/docker.rs @@ -31,7 +31,8 @@ fn _build(img: &str, channel: &str, root: &PathBuf) -> Result<(), Box let index_html_src = fs::read_to_string(&index_html_path)?; let index_html_patched = find_and_replace(&index_html_src, &[ - format!("s/let api_server = \"http:\\/\\/localhost:8080\";/let api_server = \"https:\\/\\/api.{}.{}\";/", a, b) + format!("s/let api_server = \"http:\\/\\/localhost:8080\";/let api_server = \"https:\\/\\/api.{}.{}\";/", a, b), + format!("s/let servers = [\"localhost:3000\"];/let servers = [\"{}.{}\"];/", a, b) ])?; fs::write(&index_html_path, index_html_patched.as_bytes())?;